:root {
    --bg-color: #0F0F11;
    --card-bg: #1A1A1D;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent-primary: #007E77;
    --accent-secondary: #00D2D3;
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.gradient-text {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.accent-dot {
    color: var(--accent-primary);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 15, 17, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

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

.cta-btn-small {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-btn-small:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    position: relative;
    background-image: linear-gradient(rgba(15, 15, 17, 0.4), rgba(15, 15, 17, 0.2)), url('hero-abstract.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* Ensure particles don't overflow */
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Particles above bg */
    pointer-events: none;
    transition: transform 0.1s ease-out;
    /* Smooth movement for mouse interaction */
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    /* Content above particles */
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    padding: 10px;
}

.arrow-down {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 4px solid var(--accent-secondary);
    border-right: 4px solid var(--accent-secondary);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(0, 210, 211, 0.5) 40%, rgba(0, 126, 119, 0) 70%);
    opacity: 0;
    animation: floatUp 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 210, 211, 0.5);
    /* Add glow */
}

@keyframes floatUp {
    0% {
        transform: translateY(100px) scale(0.5);
        /* Start lower */
        opacity: 0;
    }

    20% {
        opacity: 0.8;
        /* Fade in faster */
    }

    80% {
        opacity: 0.8;
        /* Stay visible longer */
    }

    100% {
        transform: translateY(-200px) scale(1.2);
        opacity: 0;
    }
}


.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.primary-btn,
.secondary-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.primary-btn {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 210, 211, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 210, 211, 0.4);
}

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Work Section */
#work {
    padding: 6rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Services Section */
#services {
    padding: 6rem 10%;
    background: #141416;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    flex: 1 1 300px;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--bg-color) 0.3s;
}

.service-card:hover {
    background: #1f1f22;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* About Section */
#about {
    padding: 6rem 10%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.skills-tags span {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Section */
#contact {
    padding: 6rem 2rem;
    text-align: center;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.big-btn {
    font-size: 1.2rem;
    margin-top: 2rem;
    display: inline-block;
}

/* Footer */
footer {
    padding: 2rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 126, 119, 0.25), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Mobile Responsive */
.burger {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: flex;
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: rgba(15, 15, 17, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease, opacity 0.4s ease;
        opacity: 0;
        pointer-events: none;
        z-index: 1500;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        opacity: 0;
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .burger {
        display: block;
        z-index: 2001;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

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

/* Honeypot field */
.hp-field {
    display: none;
    visibility: hidden;
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

.hp-field input {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
}

/* Contact Form */
.contact-form {
    margin-top: 3rem;
    text-align: left;
}

.form-group {
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: linear-gradient(to right, rgba(108, 99, 255, 0.05), transparent);
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .contact-form {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Project Modal */
.modal {
    visibility: hidden;
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    position: relative;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.7);
    transition: transform 0.5s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-primary);
}

#modal-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

#modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#modal-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-main);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 126, 119, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 126, 119, 0.6);
}

/* Desktop Grid Override */
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
        gap: 2rem;
    }

    .service-card {
        max-width: 100%;
        flex: unset;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 400px;
    background: rgba(26, 26, 29, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.cookie-banner.show {
    opacity: 1;
    bottom: 40px !important;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-btns {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-content a {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.primary-btn-small,
.secondary-btn-small {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn-small {
    background: var(--gradient-main);
    color: white;
    border: none;
    flex: 1;
}

.secondary-btn-small {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.primary-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 211, 0.4);
}

.secondary-btn-small:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        width: calc(100% - 20px);
    }
}

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: rgba(26, 26, 29, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.cookie-settings-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.cookie-settings-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 210, 211, 0.2);
    border-color: var(--accent-secondary);
}

.cookie-icon {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

/* Student Zone Section */
#student-zone {
    padding: 6rem 10%;
    margin: 0 auto;
    max-width: 1400px;
}

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

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.student-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

#resourceSearch {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

#resourceSearch:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 126, 119, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 0;
    height: 100%;
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    pointer-events: none;
}

.resource-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.res-filter-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.res-filter-btn:hover,
.res-filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px rgba(0, 126, 119, 0.3);
}

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

.resource-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: #202024;
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.res-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.res-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.res-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    margin-bottom: 0.8rem;
    align-self: flex-start;
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.resource-card p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex: 1;
}


.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    flex: 1;
}

.view-btn {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.view-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 210, 211, 0.3);
    background: var(--gradient-main);
}


.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}


.btn-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.download-btn:hover .btn-icon svg {
    transform: translateX(3px);
}

.download-btn[href*="download"]:hover .btn-icon svg {
    transform: translateY(3px);
}

@media (max-width: 768px) {
    .student-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-filters {
        justify-content: center;
    }
}