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

html {
    scroll-behavior: smooth;
}

body {
    background: #070707;
    color: #ffffff;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    padding: 20px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(7, 7, 7, 0.75);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(255,255,255,0.06);

    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: 900;
}

.logo span {
    color: #6c63ff;
}

.navbar nav {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    color: #aaa;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: #ffffff;
}

.nav-button,
.primary-btn {
    background: #6c63ff;
    color: white;

    padding: 13px 22px;

    border-radius: 30px;

    transition: 0.3s;
}

.nav-button:hover,
.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108,99,255,0.35);
}

.menu-btn {
    display: none;

    background: none;
    border: none;

    color: white;

    font-size: 24px;
}


/* ================= HERO ================= */

.hero {
    min-height: 100vh;

    padding: 150px 8% 80px;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 60px;
}

.eyebrow {
    color: #6c63ff;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(45px, 6vw, 78px);

    line-height: 1.05;

    font-weight: 900;
}

#typing-text {
    color: #6c63ff;
}

.hero-description {
    max-width: 600px;

    color: #999;

    font-size: 18px;

    margin: 25px 0;
}

.hero-buttons {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.secondary-btn {
    border: 1px solid #333;

    padding: 13px 22px;

    border-radius: 30px;

    transition: 0.3s;
}

.secondary-btn:hover {
    border-color: #6c63ff;

    transform: translateY(-3px);
}


/* ================= SOCIALS ================= */

.social-links {
    display: flex;

    gap: 12px;

    margin-top: 35px;
}

.social-links a,
.footer-socials a {
    width: 42px;
    height: 42px;

    border: 1px solid #292929;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #aaa;

    transition: 0.3s;
}

.social-links a:hover,
.footer-socials a:hover {
    color: white;

    background: #6c63ff;

    border-color: #6c63ff;

    transform: translateY(-5px);
}


/* ================= PROFILE ================= */

.hero-image {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;
}

.image-glow {
    position: absolute;

    width: 350px;
    height: 350px;

    background: #6c63ff;

    filter: blur(130px);

    opacity: 0.35;
}

.profile-frame {
    position: relative;

    width: 360px;
    height: 460px;

    border-radius: 30px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.15);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.5);

    z-index: 2;
}

.profile-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}

.floating-card {
    position: absolute;

    bottom: 30px;
    left: 0;

    z-index: 5;

    background: rgba(20,20,20,0.9);

    border: 1px solid #333;

    padding: 15px 20px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    gap: 10px;

    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: #6c63ff;
}

@keyframes float {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

}


/* ================= SECTIONS ================= */

.section {
    padding: 120px 8%;
}

.section-heading p {
    color: #6c63ff;

    font-size: 13px;

    letter-spacing: 3px;

    font-weight: bold;
}

.section-heading h2 {
    font-size: clamp(35px, 5vw, 55px);

    margin-top: 10px;

    line-height: 1.1;
}


/* ================= ABOUT ================= */

.about-content {
    margin-top: 50px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;
}

.about-text p {
    color: #999;

    font-size: 18px;

    margin-bottom: 20px;
}

.stats {
    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 20px;
}

.stat {
    background: #111;

    border: 1px solid #222;

    padding: 25px;

    border-radius: 18px;

    text-align: center;
}

.stat strong {
    display: block;

    font-size: 35px;

    color: #6c63ff;
}

.stat span {
    color: #888;

    font-size: 13px;
}


/* ================= SERVICES ================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 20px;

    margin-top: 50px;
}

.service-card {
    background: #101010;

    border: 1px solid #202020;

    padding: 30px;

    border-radius: 20px;

    transition: 0.4s;
}

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

    border-color: #6c63ff;

    box-shadow:
        0 20px 50px rgba(108,99,255,0.1);
}

.service-icon {
    width: 55px;
    height: 55px;

    border-radius: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(108,99,255,0.12);

    color: #6c63ff;

    font-size: 22px;

    margin-bottom: 25px;
}

.service-card > span {
    color: #555;
}

.service-card h3 {
    margin: 10px 0;

    font-size: 21px;
}

.service-card p {
    color: #777;
}


/* ================= PROJECTS ================= */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 50px;
}

.project-card {
    background: #101010;

    border: 1px solid #202020;

    border-radius: 20px;

    overflow: hidden;

    transition: 0.4s;

    cursor: pointer;
}

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

.project-image {
    width: 100%;
    height: 220px; /* Controls the exact height of the picture area */

    overflow: hidden;
    position: relative;

    background:
        linear-gradient(
            135deg,
            #171717,
            #252525
        );
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover; /* Ensures pictures scale nicely without distortion */
    object-position: center;

    transition: transform 0.4s ease;
}

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

.project-info {
    padding: 25px;
}

.project-info > span {
    color: #6c63ff;

    font-size: 12px;

    letter-spacing: 2px;
}

.project-info h3 {
    margin: 8px 0;
}

.project-info p {
    color: #777;
}



/* ================= CONTACT ================= */

.contact {
    padding: 140px 8%;

    text-align: center;

    background: #0d0d0d;
}

.contact > p:first-child {
    color: #6c63ff;

    letter-spacing: 3px;
}

.contact h2 {
    font-size: clamp(40px,6vw,70px);

    line-height: 1.05;

    margin: 20px auto;

    max-width: 900px;
}

.contact-text {
    color: #777;

    margin-bottom: 30px;
}

.contact-buttons {
    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}


/* ================= FOOTER ================= */

footer {
    padding: 35px 8%;

    border-top: 1px solid #202020;

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 20px;

    color: #666;
}

.footer-socials {
    display: flex;

    gap: 10px;
}


/* ================= SCROLL ANIMATION ================= */

.reveal {
    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.active {
    opacity: 1;

    transform: translateY(0);
}


/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .navbar nav {
        display: none;

        position: absolute;

        top: 75px;
        left: 5%;
        right: 5%;

        background: #111;

        border: 1px solid #222;

        border-radius: 15px;

        padding: 20px;

        flex-direction: column;

        gap: 15px;
    }

    .navbar nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .nav-button {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .hero-image {
        margin-top: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .navbar {
        padding: 18px 5%;
    }

    .hero,
    .section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero {
        padding-top: 130px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .profile-frame {
        width: 280px;
        height: 360px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .contact {
        padding-left: 5%;
        padding-right: 5%;
    }

    footer {
        justify-content: center;

        text-align: center;
    }

}
/* ================= ADVANCED CATCHY ANIMATIONS ================= */

/* 1. Subtle pulsing glow around cards on hover */
.service-card, .project-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover, .project-card:hover {
    border-color: #6c63ff;
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.2);
    transform: translateY(-8px);
}

/* 2. Shine sweep effect on primary buttons */
.primary-btn, .nav-button {
    position: relative;
    overflow: hidden;
}

.primary-btn::after, .nav-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.7s ease-in-out;
}

.primary-btn:hover::after, .nav-button:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* 3. Floating background ambient orbs for depth */
.hero {
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: rgba(108, 99, 255, 0.15);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    animation: ambient-drift 8s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(40px) scale(1.2);
    }
}
/* ================= PRELOADER STYLING ================= */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #070707;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

/* Fancy CSS Spinner */
.fancy-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(108, 99, 255, 0.15);
    border-top: 4px solid #6c63ff;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin-loader 1s linear infinite, pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(108, 99, 255, 0.2); }
    100% { box-shadow: 0 0 25px rgba(108, 99, 255, 0.6); }
}

/* Welcome Typing Text Styling */
.welcome-typing {
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 900;
    color: #3b82f6; /* Big Blue Fancy Writing */
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    min-height: 120px; /* Reserves space so layout doesn't jump */
}

/* Blinking cursor for preloader */
.welcome-typing::after {
    content: '|';
    animation: blink-cursor 0.7s infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ================= ARCADE LOADING STATUS ================= */
.loading-status {
    margin-top: 20px;
    font-family: monospace; /* Gives it a classic game text look */
    font-size: 18px;
    font-weight: bold;
    color: #a855f7; /* Eye-catching purple/blue tone */
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}
/* ================= SKILLS CARDS & LOADING BARS ================= */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

.skill-category-card {
    background: #111318;
    border: 1px solid #1f242d;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.skill-category-card:hover {
    border-color: #3b82f6;
}

.skill-category-card h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 20px;
}

.skill-item {
    margin-bottom: 16px;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #1e2330;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%; /* Starts empty for the animation effect */
    background-color: #3b82f6;
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0.4, 0.2, 1);
}
/* ==================== LIGHT THEME OVERRIDES ==================== */

body.light-mode {
    background-color: #f8f9fa;
    color: #212529;
}

/* Navbar in Light Mode */
body.light-mode .navbar {
    background: rgba(248, 249, 250, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .navbar nav a {
    color: #495057;
}

body.light-mode .navbar nav a:hover {
    color: #6c63ff;
}

/* Secondary Buttons & Borders in Light Mode */
body.light-mode .secondary-btn {
    border: 1px solid #ced4da;
    color: #212529;
}

/* Social Icons in Light Mode */
body.light-mode .social-links a, 
body.light-mode .footer-socials a {
    border: 1px solid #dee2e6;
    color: #495057;
}

/* Hero Description Text in Light Mode */
body.light-mode .hero-description {
    color: #6c757d;
}

/* Theme Toggle Button Styling */
.theme-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
}
/* ==================== WARM EYE-CARE LIGHT THEME ==================== */

body.light-mode {
    background-color: #faf6ed; /* Warm yellowish-white / cream tint */
    color: #2b261f;            /* Warm dark text for high contrast */
}

/* Navbar in Light Mode */
body.light-mode .navbar {
    background: rgba(250, 246, 237, 0.88);
    border-bottom: 1px solid rgba(43, 38, 31, 0.08);
}

body.light-mode .navbar nav a {
    color: #5c5346;
}

body.light-mode .navbar nav a:hover {
    color: #6c63ff;
}

/* Make Hamburger Icon and Toggle Button Visible in Light Mode */
body.light-mode .menu-btn,
body.light-mode .theme-btn {
    color: #2b261f !important;
}

/* Secondary Buttons & Borders in Light Mode */
body.light-mode .secondary-btn {
    border: 1px solid #d4c9b1;
    color: #2b261f;
}

/* Social Icons in Light Mode */
body.light-mode .social-links a, 
body.light-mode .footer-socials a {
    border: 1px solid #d4c9b1;
    color: #5c5346;
}

/* Hero Description Text in Light Mode */
body.light-mode .hero-description {
    color: #6e6354;
}

/* Theme Toggle Button Styling */
.theme-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-left: 10px; /* Keeps it neatly spaced next to the menu */
}

.theme-btn:hover {
    transform: scale(1.1);
}
