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

body {
    font-family: 'Arial', sans-serif;
    background: #1a1919;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: rgb(206, 210, 237);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
 
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: #1a19199a;
    backdrop-filter: blur(5px);
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: none;
    box-sizing: border-box;
    line-height: normal;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Global link reset - applies to content links only */
a:not(.logo):not(.nav-links a):not(.section-nav a):not(.cta-button) {
    color: rgb(213, 221, 234) !important;
    text-decoration: underline !important;
}


a:not(.logo):not(.nav-links a):not(.section-nav a):not(.cta-button):link, 
a:not(.logo):not(.nav-links a):not(.section-nav a):not(.cta-button):visited, 
a:not(.logo):not(.nav-links a):not(.section-nav a):not(.cta-button):active {
    color: rgb(200, 205, 218)!important;
    text-decoration: underline !important;
}

a:not(.logo):not(.nav-links a):not(.section-nav a):not(.cta-button):hover{
    color: rgb(147, 163, 204)!important;
    text-decoration: underline !important;
} 

/* UNIFIED STYLING - applies to logo, nav links, and CTA buttons ONLY (excluding section nav) */
.logo, .nav-links a, .cta-button {
    color: white !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    line-height: 1.2;
}

/* Make logo slightly larger but keep same color */
.logo {
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* UNIFIED HOVER EFFECTS for navbar only (excluding section nav) */
.logo:hover, .nav-links a:hover {
    transform: translateY(-2px);
    color: rgb(161, 164, 166) !important;
}

/* CTA button has its own hover styling */
.cta-button:hover {
    background: rgb(55, 56, 57);
    color: #b1b2ba !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* UNIFIED UNDERLINE ANIMATION for navbar only (exclude section nav and CTA button) */
.logo::after, .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.logo:hover::after, .nav-links a:hover::after {
    width: 100%;
}

/* Override the global link state styles for nav items and CTA buttons */
.logo:link, .logo:visited, .logo:active,
.nav-links a:link, .nav-links a:visited, .nav-links a:active,
.cta-button:link, .cta-button:visited, .cta-button:active {
    color: white !important;
    text-decoration: none !important;
}

.logo:hover, .nav-links a:hover {
    color: rgb(161, 164, 166) !important;
}

.detail-item {
    margin-top: 1rem;
    background: #6c73862f;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 1px solid #5a8dc8;
    font-size: 0.9rem;
    
}

.detail-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #e0e4ee;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    padding-top: 8px;
    color: #bbbfc7;
}

.hero {
    margin-top: 1rem;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 2;
}

.hero h1 {
    color: transparent;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-weight: 500;
    opacity: 0.9;
    font-size: 4rem;
    margin-bottom: 1rem;
    padding: 20px;
}


.gradient-text {
    background: linear-gradient(270deg, #6daffb, #9164fb, #00eeff, #ed4cff);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text; /* Chrome, Safari, Opera */
    color: transparent; /* make the actual text transparent */
    animation: gradientFlow 10s ease infinite;
}

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* Horizontal flexbox layout */
.content-section {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 100px; 
}

.text-content {
    flex: 1;
    max-width: 600px;
}

.text-content h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: transparent;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-weight: 600;
}

.text-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.carousel-container {
    flex: 1;
    display: flex;
    justify-content: right;
}

.profile-slideshow {
    justify-content: right;
    height: 360px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.profile-slideshow:hover {
    transform: scale(1.05);
}

.slides-container {
    display: flex;
    width: 400%; /* 4 images = 400% */
    height: 100%;
    animation: slideHorizontal 16s infinite linear;
}

.slide {
    width: 20; /* slide width */
    margin-left: 10px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
 
@keyframes slideHorizontal {
    0% { transform: translateX(0); }
    25% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    75% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 5rem;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-level {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(45deg, #f4b24f, #ff883e, #f13040);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    border-radius: 3px;
    width: 0;
    transition: width 2s ease;
}


/* Mobile responsive */
@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .carousel-container {
        max-width: 100%;
        width: 100%;
    }
    
    .profile-slideshow {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .slides-container {
        width: 400%;
        height: 100%;
    }
    
    .text-content h2 {
        font-size: 2rem;
    }
    
    .text-content p {
        font-size: 1.1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1rem;
    }
    
    .carousel-container {
        max-width: 100%;
        width: 100%;
    }
    
    .profile-slideshow {
        width: 100%;
        height: auto;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .slides-container {
        width: 400%;
        height: 100%;
    }
    
    .text-content h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        padding: 10px;
    }
    .footer {
        padding: 2rem 0 1.5rem 0;
    }

    .footer-content {
        padding: 0 1rem;
    }
}


.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 1.5rem; /* spacing between images */
    max-width: 1200px;
    margin: 2rem 0rem; /* centers the grid under flexbox */
}

.image-grid img {
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Mobile responsive grid */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}
.image-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4; /* controls shape of card */
    overflow: hidden;
    border-radius: 20px;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills box nicely */
}


.image-card:hover img {
    transform: scale(1.05);
}

/* Text overlay */
.image-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1rem;
    border-radius: 0 0 20px 20px;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

/* Show text on hover */
.image-card:hover .image-description {
    opacity: 1;
    transform: translateY(0);
}
/* Footer Styles */
.footer {
    margin: auto;
    width: 50%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1919;
    color: rgb(206, 210, 237);
    padding: 3rem;
    margin-top: 4rem;
    width: 100vw;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    line-height: 2rem;
    color: rgb(140, 145, 160);
    font-size: 1rem;
}
/* Mobile responsive footer adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: left;
        gap: 2rem;
        padding: 0 1rem;
        justify-content: flex-start;
    }

    .footer-section {
        width: 100%;
        text-align: left;
    }

    .footer-section h3 {
        text-align: left;
    }

    .footer-section p {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1.5rem 0;
    }

    .footer-content {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .profile-slideshow {
        width: 200px;
        height: 200px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot-navigation {
        gap: 8px;
        margin-top: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1rem;
    }
    
    .carousel-container {
        max-width: 100%;
        width: 100%;
    }
    
    .profile-slideshow {
        width: 100%;
        height: auto;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .slides-container {
        width: 400%;
        height: 100%;
    }
    
    .text-content h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        padding: 10px;
    }

    .image-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }

    .footer {
        padding: 2rem 0 1.5rem 0;
    }

    .footer-content {
        padding: 0 1rem;
    }
}
