:root {
    /* === THEME COLOR CONFIGURATION === */
    /* Change this value to update the customized accent color */
    --accent: #64ffda;

    /* Theme Variables */
    --bg-dark: #0a192f;
    --bg-card: rgba(17, 34, 64, 0.75);
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent-glow: rgba(100, 255, 218, 0.1);
    --gradient-1: linear-gradient(45deg, #64ffda, #007bff);
    --gradient-text: linear-gradient(90deg, #64ffda, #bd34fe);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --border-color: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    --card-hover-border: rgba(100, 255, 218, 0.3);
}

/* Light Theme Overrides */
body.light-theme {
    --bg-dark: #f0f2f5;
    --bg-card: #ffffff;
    --text-primary: #1d3557;
    --text-secondary: #4a5568;
    --accent: #059669;
    /* Green for light mode */
    --accent-glow: rgba(5, 150, 105, 0.1);
    --gradient-text: linear-gradient(90deg, #059669, #0d9488);
    --border-color: rgba(0, 0, 0, 0.05);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --card-hover-border: rgba(0, 112, 243, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #233554;
    border-radius: 5px;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: #cbd5e0;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

body.light-theme header {
    background: rgba(255, 255, 255, 0.85);
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links .nav-social {
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.nav-links .nav-social:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Ensure the underline doesn't appear for the icon if it targets "a:not(.btn-primary)" generically */
.nav-links a.nav-social::after {
    display: none;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.05);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    /* Changed to text-primary to adapt to light theme */
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.accent-label {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-glow);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    padding: 0.8rem 1.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

.btn-secondary:hover {
    color: var(--accent);
}

.tech-stack-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-secondary);
}

.tech-stack-icons i:hover {
    color: var(--accent);
    transform: translateY(-3px);
    transition: var(--transition);
}

/* Hero Image */
.hero-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(45deg, #112240, #0a192f);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.light-theme .image-wrapper {
    background: linear-gradient(45deg, #e2e8f0, #ffffff);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 100%;
    border-radius: 10px;
    display: block;
    filter: grayscale(20%) contrast(1.1);
    transition: var(--transition);
}

.image-wrapper:hover .profile-img {
    filter: none;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 1px solid var(--card-hover-border);
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: rgba(17, 34, 64, 0.9);
    backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

body.light-theme .floating-card {
    background: rgba(255, 255, 255, 0.9);
}

.card-1 {
    top: 10%;
    right: -20px;
}

.card-2 {
    bottom: 10%;
    left: -20px;
    animation-delay: 2s;
}

.floating-card i {
    color: var(--accent);
    font-size: 1.2rem;
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

@keyframes float {

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

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.about-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Project Cards */
.alt-bg {
    background: rgba(255, 255, 255, 0.02);
}

body.light-theme .alt-bg {
    background: rgba(0, 0, 0, 0.02);
}

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

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--card-shadow);
    border-color: var(--card-hover-border);
}

.project-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
}

/* New Project Metadata */
.project-meta {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.live {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.status-badge.dev {
    background: rgba(255, 206, 86, 0.1);
    color: #ffce56;
    border: 1px solid #ffce56;
}

.status-badge.enterprise {
    background: rgba(255, 99, 71, 0.1);
    color: #ff6347;
    border: 1px solid #ff6347;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin-bottom: 2rem;
}

.project-tags li {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

body.light-theme .project-tags li {
    background: rgba(0, 112, 243, 0.05);
    border-color: rgba(0, 112, 243, 0.2);
}


.btn-text {
    color: var(--text-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    color: var(--accent);
}

.project-visual {
    background: #112240;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.project-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.8), transparent);
}

body.light-theme .project-visual {
    background: #f1f5f9;
    color: rgba(0, 0, 0, 0.1);
}

body.light-theme .project-visual::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), transparent);
}


/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    padding-left: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.timeline-content .company {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags span {
    background: var(--bg-card);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tags span:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
}

.cert-card:hover {
    box-shadow: var(--card-shadow);
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
}

.cert-card i {
    font-size: 2.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.cert-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.cert-year {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

body.light-theme .cert-year {
    background: rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer-section {
    padding: 8rem 0 4rem;
    text-align: center;
}

.footer-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.big-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.footer-links {
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .tech-stack-icons {
        justify-content: center;
    }

    .image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-visual {
        height: 200px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        width: 70%;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    body.light-theme .nav-links {
        background: #ffffff;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Scroll Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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