:root {
    /* New Palette: Deep Blue & Gold/Cyan Tech */
    --primary: #FFD700;
    /* Gold */
    --primary-glow: rgba(255, 215, 0, 0.4);
    --secondary: #00E5FF;
    /* Cyan */
    --secondary-glow: rgba(0, 229, 255, 0.4);
    --bg-dark: #0B1120;
    --bg-card: #162032;
    /* Slightly lighter for cards */
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Social Colors */
    --facebook: #1877F2;
    --instagram: #E1306C;
    --tiktok: #000000;
    --youtube: #FF0000;
}

.light-mode {
    --bg-dark: #F0F4F8;
    --bg-card: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --primary: #F59E0B;
    /* Darker Gold for light mode contrast */
    --primary-glow: rgba(245, 158, 11, 0.3);
    --secondary: #0284C7;
    /* Darker Blue for light mode */
}

.light-mode .project-card,
.light-mode .skill-category,
.light-mode .stat-item,
.light-mode .social-card {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.light-mode .navbar {
    background: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 25%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light-mode .header {
    background: rgba(240, 244, 248, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--primary);
}

.navbar a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.navbar a:hover,
.navbar a.active {
    color: var(--text-main);
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 2rem;
    transition: transform 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(15deg);
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    margin-left: 1.5rem;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    animation: slideUp 0.8s ease-out forwards;
}

.subtitle {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flow-root;
}

.title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.role .highlight {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Scribble effect under text */
.role .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 8px;
    background: var(--primary-glow);
    z-index: -1;
    transform: skew(-10deg);
}

.description {
    max-width: 600px;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    /* Boxier look for "Developer" feel */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: #1a1a1a;
    /* Dark text on gold */
    box-shadow: 0 4px 20px var(--primary-glow);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--primary-glow);
    background: #ffdb1a;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
}

.light-mode .btn-secondary {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* Visual Update */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.abstract-shape {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 50% 50%, var(--secondary), transparent 70%);
    filter: blur(60px);
    opacity: 0.2;
    position: absolute;
    animation: pulse 6s infinite alternate;
}

.profile-img-container {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    /* Circle */
    padding: 10px;
    /* Gap for border */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    display: block;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
.section {
    padding: 7rem 10%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
}

/* About Grid */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stat-item {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px -10px rgba(0, 229, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Skills - Professional Layout */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skills-column {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-heading {
    margin-bottom: 2rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--secondary);
    color: var(--bg-dark);
}

/* Projects */
.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.tags span {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 215, 0, 0.2);
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 6px;
}

/* Experience Timeline - Detailed */
.timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 1rem;
}

.timeline-marker {
    position: absolute;
    left: -2.6rem;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    transition: 0.3s;
}

.timeline-item:hover .timeline-marker {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(5px);
    border-color: var(--secondary);
}

.role-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0.5rem 0;
}

.institution {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.role-desc {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.achievements {
    list-style: none;
}

.achievements li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.achievements li::before {
    content: '•';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Social Grid (New Design) */
.contact {
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 3rem auto;
}

.social-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.social-card i {
    font-size: 2.5rem;
    transition: var(--transition);
}

.social-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* Brand Colors on Hover */
.social-card.facebook:hover {
    background: var(--facebook);
    color: #fff;
    border-color: var(--facebook);
    transform: translateY(-5px);
}

.social-card.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    transform: translateY(-5px);
}

.social-card.tiktok:hover {
    background: #000;
    color: #fff;
    border-color: #333;
    transform: translateY(-5px);
    box-shadow: -2px -2px 0 #25F4EE, 2px 2px 0 #FE2C55;
    /* TikTok Glitch Effect */
}

.social-card.youtube:hover {
    background: var(--youtube);
    color: #fff;
    transform: translateY(-5px);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-pill i {
    color: var(--primary);
}

/* Footer */
.footer {
    padding: 3rem;
    background: #050911;
    /* Darker than bg-dark */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 968px) {
    .header {
        padding: 1.2rem 2rem;
    }

    .hero {
        padding: 9rem 2rem 5rem;
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        width: 100%;
        height: auto;
        margin-top: 3rem;
        justify-content: center;
    }

    .title {
        font-size: 3rem;
    }

    .profile-img-container {
        width: 260px;
        height: 260px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hamburger {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(20px);
        padding: 5rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar.active {
        right: 0;
    }

    .navbar a {
        margin: 0;
        font-size: 1.5rem;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
    }

    .skill-tags {
        justify-content: center;
    }
}

/* Cursor (unchanged but ensured z-index) */
.cursor-dot,
.cursor-outline {
    z-index: 9999;
    pointer-events: none;
}
/* Dynamic Logo Styling - Professional Circular Design */
.dynamic-logo {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.dynamic-logo:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
}

.dynamic-logo:active {
    transform: scale(0.95);
}
