:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #03dac6;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --card-bg: #2a2a4a;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;

    --gradient-color-1: #1e3a8a;
    --gradient-color-2: #3b0764;
    --gradient-color-3: #172554;
    --gradient-color-4: #0f172a;
}


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Roboto+Slab:wght@400;700&display=swap');

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

body {
    font-family: var(--font-primary);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

header {
    background-color: rgba(22, 33, 62, 0.9);
    color: var(--heading-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: var(--font-secondary);
    color: var(--accent-color);
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px;
    transition: all 0.3s ease;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    color: var(--heading-color);
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg, 
        var(--gradient-color-1), 
        var(--gradient-color-2), 
        var(--gradient-color-3), 
        var(--gradient-color-4)
    );
    background-size: 400% 400%;
    animation: animatedGradient 25s ease infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

.hero-content .highlight-text {
    color: var(--accent-color);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: var(--text-color);
}
.hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 100%;
    margin: 0 0 2rem 0;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    font-family: var(--font-secondary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.cta-button:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-button.secondary-button {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button.secondary-button:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: scale(1.1);
    background: rgba(3, 218, 198, 0.2);
}

.floating-card:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.floating-card:nth-child(4) {
    bottom: 20%;
    right: 30%;
    animation-delay: 3s;
}

.floating-card:nth-child(5) {
    top: 15%;
    left: 50%;
    animation-delay: 4s;
}

.floating-card:nth-child(6) {
    bottom: 10%;
    left: 40%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    color: var(--accent-color);
    font-size: 1.5rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.skill-category.featured {
    background: linear-gradient(135deg, rgba(3, 218, 198, 0.1), rgba(3, 218, 198, 0.05));
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.skill-category.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), rgba(3, 218, 198, 0.5));
}

.skill-category.featured h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.content-section {
    padding: 5rem 2rem;
    background-color: var(--primary-color);
}
.content-section-dark {
    padding: 5rem 2rem;
    background-color: var(--secondary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.content-section h2, .content-section-dark h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--heading-color);
    font-family: var(--font-secondary);
    position: relative;
}
.content-section h2::after, .content-section-dark h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}


.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 5px solid var(--accent-color);
}
.about-content p {
    max-width: 800px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.skill-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(3, 218, 198, 0.2);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.skill-category h3 i {
    margin-right: 10px;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}
.skill-category ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 3px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.highlight-item {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(3, 218, 198, 0.15);
}
.highlight-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.highlight-item h3 {
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}
.highlight-item p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.highlight-item strong {
    color: var(--accent-color);
}
.project-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease;
}
.project-link:hover {
    border-bottom-color: var(--accent-color);
}


.contact-links {
    text-align: center;
    margin-top: 2rem;
}

.contact-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 25px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--accent-color);
}
.contact-button i {
    margin-right: 8px;
}
.contact-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
}
footer .fa-heart { color: var(--accent-color); }
footer .fa-coffee { color: #c4a287; }


@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--secondary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .nav-active li {
        opacity: 1;
        transition: opacity 0.5s ease 0.2s;
    }
    .nav-active li:nth-child(1) { transition-delay: 0.2s; }
    .nav-active li:nth-child(2) { transition-delay: 0.3s; }
    .nav-active li:nth-child(3) { transition-delay: 0.4s; }
    .nav-active li:nth-child(4) { transition-delay: 0.5s; }
    .nav-active li:nth-child(5) { transition-delay: 0.6s; }


    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    .content-section h2, .content-section-dark h2 {
        font-size: 2rem;
    }

    .skills-grid, .highlights-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-card {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 200px;
        text-align: center;
    }
}

/* Additional animations */
@keyframes pulse {
    0% {
        text-shadow: 0 0 5px var(--accent-color);
    }
    50% {
        text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color);
    }
    100% {
        text-shadow: 0 0 5px var(--accent-color);
    }
}

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