/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography styles */
.textStyle-RubikGreyLight {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 36px;
    color: #7E7E7E;
    transition: font-size 0.3s ease;
}

.textStyle-RubikBlackStrong {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 96px;
    color: #000000;
    line-height: 1.1;
    transition: font-size 0.3s ease;
}

.textStyle-RubikBlackLight {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 36px;
    color: #000000;
    transition: font-size 0.3s ease;
}

.textStyle-RubikBlackLightSmall {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: #000000;
    line-height: 1.6;
    transition: font-size 0.3s ease;
}

/* Button styles */
.buttonStyle {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #000000;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    outline: none;
}

.buttonStyle:hover {
    color: #7E7E7E;
    transform: translateY(-3px);
}

.buttonStyle:active {
    transform: translateY(1px);
}

.homeButtonStyle {
    margin-top: 20px;
    border: 1px solid #333;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.homeButtonStyle:hover {
    background-color: #f5f5f5;
}

.button-container {
    margin-top: 30px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.section2ButtonStyle {
    border: 1px solid #333;
    padding: 8px 20px;
    margin-top: 0;
}

.back-home-btn {
    border: 1px solid #333;
    padding: 8px 20px;
    margin-top: 0;
    background-color: #f5f5f5;
}

.back-home-btn:hover {
    background-color: #e5e5e5;
}

/* Remove the old home button styles or keep them only for other sections */
#aboutMe #homeButton {
    display: none;
}

/* Section styles */
.content {
    width: 100%;
    min-height: 100vh;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#homePage {
    display: flex;
    position: relative;
}

.page {
    max-width: 800px;
    width: 100%;
    padding: 0 15px;
}

/* Home page specific styles */
.homeIcon {
    position: absolute;
    right: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.droneIcon,
.kameraIcon,
.webDevIcon {
    max-width: 100px;
    margin: 10px 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.droneIcon:hover,
.kameraIcon:hover,
.webDevIcon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.accessories-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    z-index: -1;
}

/* Geometric shapes for homepage */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 200px;
}

.shape {
    position: absolute;
    background-color: #000;
}

.shape-1 {
    width: 80px;
    height: 130px;
    top: 0;
    left: 0;
}

.shape-2 {
    width: 200px;
    height: 110px;
    top: 0;
    left: 100px;
}

.shape-3 {
    width: 120px;
    height: 100px;
    top: 100px;
    left: 45px;
    background-color: #d9d4d4;
}

/* Floating icons */
.floating-icons {
    position: absolute;
    right: 0;
    top: 50%;
    width: 40%;
    height: 50%;
}

.drone-icon {
    position: absolute;
    width: 60px;
    right: 20%;
    top: 10%;
    animation: float 6s ease-in-out infinite;
}

.camera-icon {
    position: absolute;
    width: 50px;
    right: 40%;
    top: 50%;
    transform: rotate(-15deg);
    animation: float 8s ease-in-out infinite;
}

.webdev-icon {
    position: absolute;
    width: 55px;
    right: 10%;
    top: 70%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Update homepage content positioning */
#homePage .page {
    margin-top: 220px !important;
    max-width: 1000px;
}

/* About me section styles */
#aboutMe {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.about-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 50px;
    align-items: flex-start;
}

.profile-container {
    position: relative;
    flex: 0 0 400px;
}

.profile-background {
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: #000;
    top: 20px;
    left: 20px;
    z-index: 1;
}

.profilePict {
    position: relative;
    width: 300px;
    height: auto;
    z-index: 2;
    background-color: #d3d3d3;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-left: 40px;
}

.about-content {
    flex: 1;
    padding-top: 20px;
}

.hello-title {
    font-size: 72px;
    margin-bottom: 20px;
    line-height: 1;
}

.about-text {
    max-width: 600px;
}

/* Portfolio section styles */
#portofolio {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 20px;
    background-color: #fff;
}

.portfolio-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.portfolio-header {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.geometric-accent {
    width: 80px;
    height: 80px;
    background-color: #000;
    margin-right: 20px;
}

.portfolio-title {
    font-size: 64px;
    margin: 0;
    line-height: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
}

.portfolio-image-container {
    position: relative;
    margin-bottom: 20px;
}

.portfolio-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 250px;
    object-fit: cover;
    z-index: 2;
}

.portfolio-content {
    padding: 0 10px;
}

.portfolio-item-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 15px;
}

.portfolio-item-desc {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
}

.portfolio-btn {
    border: 1px solid #333;
    padding: 8px 20px;
    margin-top: 0;
    align-self: flex-start;
}

.portfolio-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.back-about-btn,
.back-home-btn,
.back-portfolio-btn {
    border: 1px solid #333;
    padding: 8px 20px;
}

/* Web Projects Section Styles */
#webProjects {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.projects-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-header {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.projects-title {
    font-size: 42px;
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 0 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.project-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.1);
    z-index: 1;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-item-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.project-item-desc {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-btn {
    padding: 8px 15px;
    font-size: 14px;
    background-color: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.project-btn:hover {
    background-color: #007bff;
    color: white;
}

.projects-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-title {
        font-size: 36px;
    }

    .project-item-title {
        font-size: 22px;
    }

    .project-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .project-footer button {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .projects-title {
        font-size: 30px;
    }

    .project-links {
        flex-direction: column;
        gap: 10px;
    }

    .project-btn {
        width: 100%;
        text-align: center;
    }

    .project-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .project-footer button {
        margin-bottom: 10px;
    }
}

/* Gallery Section Styles */
#gallery {
    display: none;
    opacity: 0;
}

.gallery-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.gallery-header {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.gallery-title {
    font-size: 2.5rem;
    margin-left: 1rem;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .gallery-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-footer button {
        margin-bottom: 10px;
    }
}

/* Drone Footage Section Styles */
#droneFootage {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    min-height: 100vh;
}

.drone-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.drone-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.drone-title {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.drone-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.drone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.drone-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.drone-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.drone-content {
    padding: 20px;
}

.drone-item-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
}

.drone-item-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.drone-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive adjustments for drone section */
@media (max-width: 768px) {
    .drone-grid {
        grid-template-columns: 1fr;
    }
    
    .drone-title {
        font-size: 36px;
    }
    
    .drone-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .drone-footer button {
        margin-bottom: 10px;
    }
}

/* Footer styles */
footer {
    background-color: #f8f9fa;
    width: 100%;
    padding: 20px 0;
    margin-top: 50px !important;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Lazy loading image styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
    .textStyle-RubikBlackStrong {
        font-size: 84px;
    }

    .homeIcon {
        right: 5%;
    }
}

@media (max-width: 992px) {
    .textStyle-RubikBlackStrong {
        font-size: 72px;
    }

    .textStyle-RubikGreyLight,
    .textStyle-RubikBlackLight {
        font-size: 30px;
    }

    .homeIcon {
        right: 5%;
    }

    .droneIcon,
    .kameraIcon,
    .webDevIcon {
        max-width: 80px;
    }

    #homePage .page {
        margin-left: 100px;
        margin-top: 200px !important;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-container {
        margin-bottom: 40px;
    }

    .about-content {
        text-align: center;
    }

    .button-container {
        text-align: center;
    }

    .portfolio-title {
        font-size: 48px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .textStyle-RubikBlackStrong {
        font-size: 48px;
    }

    .textStyle-RubikGreyLight,
    .textStyle-RubikBlackLight {
        font-size: 24px;
    }

    .textStyle-RubikBlackLightSmall {
        font-size: 18px;
    }

    .buttonStyle {
        font-size: 20px;
    }

    .homeIcon {
        position: relative;
        right: 0;
        flex-direction: row;
        justify-content: center;
        margin-left: 0 !important;
        margin-top: 30px;
    }

    .droneIcon,
    .kameraIcon,
    .webDevIcon {
        max-width: 70px;
        margin: 0 10px;
    }

    .helloDiv .textStyle-RubikBlackStrong {
        font-size: 48px !important;
    }

    .profile-background {
        width: 250px;
        height: 250px;
        top: 15px;
        left: 15px;
    }

    .profilePict {
        width: 250px;
    }

    .hello-title {
        font-size: 48px;
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-title {
        font-size: 36px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-footer {
        flex-direction: column;
        gap: 15px;
    }
}