:root {
    --bg:#0f172a;
    --text:white;
    --card:#1e293b;
    --hero-text:#f8fafc;
}

.light {
    --bg:#f1f5f9;
    --text:#111;
    --card:white;
    --hero-text:#f8fafc;
}

body {
    margin:0;
    font-family: Arial;
    background: var(--bg);
    color: var(--text);
    transition:0.3s;
}


#particles {
    position: fixed;
    width:100%;
    height:100%;
    z-index:-1;
    top:0;
    left:0;
    background:#020617;
}

.logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
    animation:fadeUp 1s ease forwards;

}


#aboutCanvas {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: #020617;
}

#servicesCanvas {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: #020617;
}

#resumeCanvas{
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index:-1;
    background:#020617;
}

#projectsCanvas{
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index:-1;
    background:#020617;
}

#contactCanvas {
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index:-1;
    background:#020617;
}


.contact-icons {
    margin-top:25px;
    display:flex;
    justify-content:center;
    gap:20px;
}

.contact-icons a {
    font-size:24px;
    color:white;
    transition:0.3s;
}

.contact-icons a:hover {
    color:#38bdf8;
    transform:scale(1.2);
}


header {
    background: rgba(2,6,23,0.6);
    backdrop-filter: blur(10px);
    height: 70px;
    padding:0px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:1000;
    transition:0.3s;
    animation: fadeIn 1s ease-in-out;
}

header.scrolled {
    background: rgba(2,6,23,0.95);
    box-shadow:0 4px 10px rgba(0,0,0,0.4);
}

.light header {
    background: rgba(255,255,255,0.8);
}

.light header.scrolled {
    background: rgba(255,255,255,0.95);
}


nav a {
    color:var(--text);
    margin:0px 8px;
    
    font-size: 16px;
    text-decoration:none;
    position:relative;
}

nav a::after {
    content:"";
    position:absolute;
    width:0;
    height:2px;
    bottom:-4px;
    left:0;
    background:#38bdf8;
    transition:0.3s;
}

nav a:hover::after {
    width:100%;
}

nav button {
    background:linear-gradient(45deg,#2563eb,#06b6d4);
    border:none;
    padding:6px 12px;
    border-radius:6px;
    cursor:pointer;
    color:white;
}

nav {
    display:flex;
    align-items:center;
  
}

.menu-toggle {
    display:none;
    font-size:26px;
    cursor:pointer;
    color:white;
}

.nav-links {
    display:flex;
    align-items:center;
}

.mode-toggle {
    width:50px;
    height:26px;
    background:#1e293b;
    border-radius:20px;
    cursor:pointer;
    position:relative;
    transition:0.3s;
}

.toggle-circle {
    width:22px;
    height:22px;
    background:white;
    border-radius:50%;
    position:absolute;
    top:2px;
    left:2px;
    transition:0.3s;
}

.light .mode-toggle {
    background:#38bdf8;
}

.light .toggle-circle {
    left:26px;
}


@media (max-width:768px) {

    .menu-toggle {
        display:block;
        font-size: 26px;
        cursor: pointer;
        color: var(--text);
        z-index: 1001;
    }

    .nav-links {
        position:fixed;
        top:60px;
        right:-100%;
        width: 60%;
        max-width: 260px;
        height: 100vh;
        background:rgba(2,6,23,0.95);
        backdrop-filter: blur(10px);
        display:flex;
        flex-direction:column;
        align-items:center;
        padding-top:25px;
        transition:0.3s ease;
        z-index:1000;
    }

    .nav-links a {
        margin:14px 0;
        font-size:18px;
        color: white;
    }

    .nav-links.active {
        right:0;
    }
}

@media (max-width: 768px) {
    #projectList {
        grid-template-columns: repeat(2, 1fr);
    }
}

#projectList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.hero {
    text-align: center;
    padding: 40px 20px;
    margin: 25px auto;
    border-radius: 15px;
    max-width: 500px;
    background: linear-gradient(
        45deg,
        rgba(63, 15, 240, 0.65),
        rgba(10, 197, 230, 0.65)
    );
}



.column-layout {
    flex-direction:column;
    text-align:center;
}

.column-layout .hero-image {
    margin-bottom:20px;
}



.glass {
    margin:40px auto;
    padding:30px;
    border-radius:15px;
    background:rgba(255,255,255,0.1);
    backdrop-filter:blur(10px);
    max-width:700px;   
    width:90%;
    color: var(--text);
}



.cards {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
    padding:20px;
}

.card {
    background:var(--card);
    border-radius:12px;
    overflow:hidden;
    transition:0.3s;
    text-align:center; 
}

.card img {
    width:100%;
    height:200px;
    
    object-fit:contain;
    background:#093457;
}



.card h3,
.card p {
    text-align:center;
}

.card:hover {
    transform:translateY(-8px);
}


.fadeUp {
    animation:fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {opacity:0; transform:translateY(20px);}
    to {opacity:1; transform:translateY(0);}
}

footer {
    background:rgba(2,6,23,0.9);
    backdrop-filter:blur(8px);
    color:#cbd5f1;
    padding:20px;
    text-align:center;
    margin-top:40px;
}

.footer-social {
    margin:12px 0;
    display:flex;
    justify-content:center;
    gap:12px;
}

.social-btn {
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;
    text-decoration:none;
    font-weight:bold;
    color:white;

    background:linear-gradient(45deg,#2563eb,#06b6d4);
    transition:0.3s;
}

.social-btn:hover {
    transform:translateY(-3px);
    box-shadow:0 6px 15px rgba(0,0,0,0.4);
}


textarea {
    width:100%;
    padding:12px;
    margin:7px 0;
    border:none;
    border-radius:10px;
    background:rgba(255,255,255,0.2);
    color:black;
    resize:none;
    height:120px;
    box-sizing: border-box;
}

h2 {
    text-align: center;

}

.contact-box {
    max-width:500px;
    width:90%;
    margin:30px auto;
    padding:20px;
}

#contactForm {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    margin-top:15px;
}

#contactForm input,
#contactForm textarea {
    width:80%;           
    padding:8px 12px;
    border-radius:8px;
    border:none;
    font-size:14px;
    outline:none;
    background:rgba(255,255,255,0.9);
    transition:0.3s;
    box-sizing:border-box;
}

#contactForm textarea {
    height:90px;
    resize:none;
}

#contactForm input:focus,
#contactForm textarea:focus {
    box-shadow:0 0 6px rgba(56,189,248,0.6);
}

#contactForm button {
    width:80%;
    margin-top:8px;
    padding:9px;
    border:none;
    border-radius:8px;
    background:linear-gradient(45deg,#2563eb,#06b6d4);
    color:white;
    font-size:14px;
    cursor:pointer;
    transition:0.3s;
}

#contactForm button:hover {
    transform:translateY(-2px);
    box-shadow:0 6px 18px rgba(0,0,0,0.3);
}



.hero-content {
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:1100px;
    margin:auto;
    gap:40px;
    flex-wrap:wrap;
}

.hero-text {
    flex:1;
    min-width:300px;
}

.intro {
    font-size:22px;
    margin-bottom:10px;
}


.hero-image {
    flex:1;
    display:flex;
    justify-content:center;
}

.hero-image img {
    width:200px;
    height:200px;
    object-fit:cover;
    border-radius:50%;
    border:5px solid white;
    box-shadow:0 10px 25px rgba(0,0,0,0.4);
}


.cursor {
    font-weight:bold;
    animation:blink 1s infinite;
}

@keyframes blink {
    50% {opacity:0;}
}


.light .glass {
    background: rgba(255,255,255,0.7);
    color: #111;
}


.light .hero {
    background: linear-gradient(
        45deg,
        rgba(63,15,240,0.35),
        rgba(10,197,230,0.35)
    );
}

.glass,
.glass h2,
.glass p {
    color: var(--text);
}

.hero,
.hero h2,
.hero h3,
.hero p,
.hero .intro,
.hero #typing,
.hero .cursor {
    color: var(--hero-text);
}

