@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'PlaywriteDESAS';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/PlaywriteDESAS-Regular.woff2') format('woff2');
}


:root {
    --color-slate-900: #0F172A;
    --color-slate-800: #1E293B;
    --color-indigo-600: #4F46E5;
    --color-indigo-700: #4338CA;
    --color-indigo-500: #6366F1;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-white: #FFFFFF;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-slate-900);
    color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}
.contains{
    position: absolute;
    top: 0%;
    left: 0%;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.glow {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 30%);
    z-index: -1;
    pointer-events: none;
}
a {
    text-decoration: none;
}
section {
    scroll-margin-top: 80px;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.accent-color {
    color: var(--color-indigo-500);
}

.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.block { display: block; }

/* =======================================
   3. HEADER & NAVIGATION STYLES
   ======================================= */
.glass-nav {
    
    
    position: fixed;
    top: 0;
    left: 0;
    right: 0;    
    z-index: 50;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid transparent;
}
#header > .container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    transition: padding 0.3s ease-in-out;
}
#header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); 
    background: rgba(15, 23, 42, 0.8);
}
#header.scrolled.glass-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#header.scrolled > .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
#header > .container > a {
    color: var(--color-white);
    font-family: 'PlaywriteDESAS';
    font-weight: 700;
    font-size: 25px;
    opacity: 1;
    transition: 0.3s !important;
}
#header > .container > a:hover {
    opacity: .5;
}
.nav-link {
    position: relative;
    transition: color 0.3s ease;
    color: var(--color-white);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-indigo-500);
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: var(--color-indigo-500);
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
#mobile-menu {
    padding-bottom: 50px;
}
#mobile-menu a {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-align: center;
}
#mobile-menu a:nth-child(2) {
    margin: 20px 0;
}


/* =======================================
   4. HERO SECTION STYLES
   ======================================= */
#home {
    padding-top: 5rem;
    min-height: 80vh;
    display: flex;
    align-items: center; 
}
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

#home h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2; 
    margin-bottom: 1.5rem;
}
#home p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-gray-300);
    max-width: 48rem;
    margin: 0 auto 2rem auto;
    opacity: .6;
}
@media (min-width: 768px) {
    #home h1 { font-size: 3.5rem;  }
    #home p { font-size: 18px; }
}

/* =======================================
   5. PROJECT CARD STYLES
   ======================================= */
#projects { 
    padding-top: 5rem; 
    padding-bottom: 5rem; 
}
#projects h2 { font-size: 35px; text-align: center; margin-bottom: 5rem; font-family: 'PlaywriteDESAS'; }

.grid { display: grid; }
.gap-8 { gap: 2rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .grid-cols-2-md { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .grid-cols-3-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.seeMore {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.seeMore a {
    background: var(--color-indigo-600);
    padding: 12px 50px 13px 50px;
    border-radius: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    transition: 0.3s;
}
.seeMore a:hover {
    background: var(--color-indigo-700);
    transform: scale(1.05);
}

.card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-0.5rem);
}
.card img { width: 100%; height: 14rem; object-fit: fill; } 
.card > div { padding: 1.5rem; } 
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--color-gray-300); margin-bottom: 1rem; }

.project-tech-pill {
    background-color: rgba(99, 102, 241, 0.2);
    color: #C7D2FE;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* =======================================
   6. ABOUT & CONTACT STYLES
   ======================================= */
#about { padding-top: 5rem; padding-bottom: 5rem; background-color: var(--color-slate-800); }
#contact { padding-top: 5rem; padding-bottom: 5rem; }

#about h2, #contact h2 { font-size: 1.875rem; margin-bottom: 1rem; text-align: center;  }
#about p{ font-size: 1.125rem; color: var(--color-gray-300); max-width: 42rem; margin: 0 auto 2rem auto; line-height: 1.6; }
#contact p { font-size: 16px; color: var(--color-gray-300); text-align: center; line-height: 1.5; width: 100%; margin: auto; opacity: .6; }

#contact .max-w-xl { 
    max-width: 30rem;
    margin-bottom: 40px;
 }

/* Form elements */
#contact-form { max-width: 32rem; margin: 0 auto; }
#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    background-color: var(--color-slate-800);
    border: 1px solid var(--color-indigo-700);
    outline: none;
    color: var(--color-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: 'Inter';
    resize: vertical;
}
#form-message {
    font-size: 15px;
    margin: 15px 0;
    font-weight: 400;
}
#contact-form textarea {
    min-height: 100px;
}
#contact-form input:focus, #contact-form textarea:focus {
    border-color: var(--color-indigo-500);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
}
.mb-4 { margin-bottom: 1rem; }

.submit-button {
    background-color: var(--color-indigo-600);
    color: var(--color-white);
    font-weight: 500;
    font-family: 'Inter';
    font-size: 14px;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.submit-button:hover {
    background-color: var(--color-indigo-700);
    transform: scale(1.05);
}
.icn {
    color: var(--color-gray-300); 
    transition: color 0.3s ease; 
}
.icn:hover {
    color: var(--color-indigo-500);
}

/* =======================================
   7. FOOTER STYLES
   ======================================= */
footer {
    background-color: var(--color-slate-800);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
footer .copyright-text {
    color: var(--color-gray-300); 
    font-size: 0.75rem; 
    text-align: center;
}

.md-flex { display: none; }
@media (min-width: 768px) {
    .md-flex { display: flex; }
    .md-hidden { display: none; }
}

@media screen and (max-width: 1300px) {
    .container {
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
}


@media screen and (max-width: 650px) {
    #contact-form { max-width: 100%; }
    #contact-form input, #contact-form textarea {
        width: -webkit-fill-available;
    }
    #about p {
        font-size: 1rem;
        max-width: 42rem;
        margin: 2rem auto 0 auto;
        line-height: 1.8;
    }
    #about h2, #contact h2 {
        margin-top: 0 !important;
    }
    #contact p {
        font-size: 14px;
    }
    #projects h2 {
        font-size: 30px;
        margin-bottom: 2.5rem;
    }
    #home {
        min-height: 90vh;
    }
}

@media screen and (max-width: 430px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}