@import url('https://api.fontshare.com/v2/css?f[]=satoshi@900,700,500,400&display=swap');

:root {
    /* Dark Theme (Default to match mockup) */
    --bg-main: #0B0A1A;
    /* Deep dark purple/blue background */
    --bg-secondary: #131127;
    --text-main: #FFFFFF;
    --text-muted: #A0A0B5;
    --accent-primary: #7B42FF;
    /* Neon purple */
    --accent-secondary: #00D2FF;
    /* Neon blue */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Section Title Span Gradient */
    --title-span-1: #a78bfa;
    --title-span-2: #c084fc;
}

.light-mode {
    /* Light Theme (For switcher) */
    --bg-main: #edf1f0;
    --bg-secondary: #FFFFFF;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --accent-primary: #6C5CE7;
    --accent-secondary: #0984E3;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);

    /* Section Title Span Gradient for Light Mode */
    --title-span-1: #6C5CE7;
    --title-span-2: #8b5cf6;
}

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

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    max-width: 100vw;
    line-height: 1.6;
    transition: background-color 0.5s, color 0.5s;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Typography & Layout */
h1,
h2,
h3,
h4,
p {
    margin: 0;
}

/* Utilities */
.text-center {
    text-align: center;
}

a {
    text-decoration: none;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

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

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--accent-primary);
    display: inline-block;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* Global Glass Panel */
.glass-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

/* Section Dividers (Match Mockup) */
.section-divider {
    text-align: center;
    margin: 80px 0 40px 0;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--accent-primary);
    vertical-align: middle;
    margin: 0 15px;
    opacity: 0.5;
}

.section-divider span {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    z-index: 2;
}

.hero-image-container {
    z-index: 1;
    text-align: right;
}

.hero-3d {
    width: 100%;
    max-width: 600px;
    animation: float 6s ease-in-out infinite;
}

.badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-content h1 .highlight {
    color: var(--accent-primary);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-content .description {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.social-icon:hover {
    color: #fff;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Skills Grid */
.skills-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 20px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.skill-info {
    flex: 1;
}

.skill-info h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 5px;
}

.progress {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    height: 100%;
    border-radius: 2px;
}

.skill-info .percentage {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Portfolio Masonry */
.portfolio-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 15px;
}

.project-img-wrapper {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

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

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.project-info .category {
    color: var(--accent-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Split Sections (Experience / Education) */
.split-section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline {
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-content .date {
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-content h4,
.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Services */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.service-card {
    text-align: center;
    border-top: 3px solid transparent;
    transition: all 0.3s;
}

.service-card:hover {
    border-top-color: var(--accent-primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

/* Contact Section */
.contact-section {
    max-width: 900px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
}

.contact-wrapper {
    padding: 40px 40px 50px 40px;
    border-radius: 30px;
}

.contact-header h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-header p {
    margin-bottom: 40px;
    color: var(--text-muted);
}

.contact-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
}

.info-card i {
    width: 50px;
    height: 50px;
    background: rgba(123, 66, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.info-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 3px;
}

.info-card p {
    color: var(--text-main);
    font-weight: 600;
    margin: 0;
}

.contact-form-horizontal {
    background: transparent;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.glass-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s;
}

.light-mode .glass-input {
    background: rgba(255, 255, 255, 0.5);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(123, 66, 255, 0.2);
}

.footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-actions .btn-primary {
        display: none; /* Hide "Hire Me" button to save space on mobile */
    }
    
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .split-section-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        text-align: center;
        padding-top: 150px;
    }

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

    .hero-content h1.glitch {
        font-size: 3rem;
    }
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    .ps-title {
        font-size: 2.5rem;
    }
}


/* Mobile Navigation */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    z-index: 1000;
    position: relative;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 100vw;
    height: 100vh;
    background: rgba(11, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 40px 40px 40px;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.4s;
}

.light-mode .mobile-overlay {
    background: rgba(245, 246, 250, 0.98);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-overlay.active {
    right: 0;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.mobile-nav-links li {
    margin: 5px 0;
}

.mobile-nav-links a {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
    display: inline-block;
}

.mobile-nav-links a:hover {
    color: var(--accent-primary);
}

/* Hover Glows */
.skill-card {
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.skill-card:hover {
    box-shadow: 0 10px 30px rgba(123, 66, 255, 0.2);
}

/* 3D Service Card */
.service-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}
.service-icon {
    transform: translateZ(30px);
}
.service-card h3 {
    transform: translateZ(20px);
}

/* Project Card Overlay */
.project-card {
    position: relative;
    overflow: hidden;
}
.project-img-wrapper {
    margin-bottom: 0;
    border-radius: 10px;
}
.project-info {
    padding-top: 15px;
}
.project-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 0;
    height: calc(100% - 15px); /* Full height of image wrapper minus padding */
    max-height: calc(100% - 70px); 
    background: rgba(11, 10, 26, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}
.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}
.btn-view-project {
    background: var(--accent-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transform: scale(0.8);
    transition: transform 0.3s;
}
.project-card:hover .btn-view-project {
    transform: scale(1);
}

/* Background Typography */
.bg-text-accent {
    position: absolute;
    font-size: 15vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    z-index: -1;
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}
.light-mode .bg-text-accent {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.05);
}

.portfolio-section, .skills-section, .services-section {
    position: relative;
    z-index: 1;
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 85px, 0); }
    10% { clip: rect(30px, 9999px, 50px, 0); }
    20% { clip: rect(60px, 9999px, 30px, 0); }
    30% { clip: rect(40px, 9999px, 70px, 0); }
    40% { clip: rect(20px, 9999px, 85px, 0); }
    50% { clip: rect(10px, 9999px, 60px, 0); }
    60% { clip: rect(30px, 9999px, 90px, 0); }
    70% { clip: rect(60px, 9999px, 80px, 0); }
    80% { clip: rect(80px, 9999px, 50px, 0); }
    90% { clip: rect(50px, 9999px, 30px, 0); }
    100% { clip: rect(30px, 9999px, 20px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 40px, 0); }
    10% { clip: rect(20px, 9999px, 70px, 0); }
    20% { clip: rect(30px, 9999px, 90px, 0); }
    30% { clip: rect(40px, 9999px, 50px, 0); }
    40% { clip: rect(10px, 9999px, 40px, 0); }
    50% { clip: rect(20px, 9999px, 60px, 0); }
    60% { clip: rect(30px, 9999px, 70px, 0); }
    70% { clip: rect(40px, 9999px, 90px, 0); }
    80% { clip: rect(10px, 9999px, 80px, 0); }
    90% { clip: rect(20px, 9999px, 10px, 0); }
    100% { clip: rect(30px, 9999px, 20px, 0); }
}

/* =========================================
   PROJECT SHOWCASE LAYOUT (DARK GRID)
   ========================================= */

.ps-section {
    position: relative;
    padding: 60px 20px 80px 20px;
    background: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
}

/* Header */
.ps-header {
    margin-bottom: 30px; /* Reduced space */
    text-align: center; /* Ensure centered */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ps-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #9d84ff; /* Purple accent */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ps-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.1;
    color: var(--text-main);
}
.ps-title span {
    background: linear-gradient(to right, var(--title-span-1), var(--title-span-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ps-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.ps-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px; /* Reduced space */
}
.ps-filter-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    padding: 8px 20px; /* Reduced padding */
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ps-filter-btn:hover {
    background: rgba(255,255,255,0.08);
}
.ps-filter-btn.active {
    background: rgba(167, 139, 250, 0.15);
    border-color: #a78bfa;
    color: #fff;
}
.ps-filter-btn.active i {
    color: #a78bfa;
}

/* Light Mode Overrides for Filter Buttons */
.light-mode .ps-filter-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}
.light-mode .ps-filter-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}
.light-mode .ps-filter-btn.active {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.light-mode .ps-filter-btn.active i {
    color: var(--accent-primary);
}

/* Grid Layout */
.ps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Reduced gap */
    max-width: 1200px; /* Reduced container max-width to make cards smaller */
    margin: 0 auto;
}

/* Card Styling */
.ps-card {
    background: #13131a; /* Very dark blue/grey */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px; /* Slightly smaller radius */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.ps-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
}

/* Media Area */
.ps-card-media {
    position: relative;
    width: 100%;
    height: 180px; /* Reduced image height */
    overflow: hidden;
}
.ps-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.ps-card:hover .ps-media-img {
    transform: scale(1.05);
}

/* Play Button */
.ps-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.ps-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Content Area */
.ps-card-content {
    padding: 20px; /* Reduced padding */
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ps-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Reduced space */
}
.ps-card-category {
    font-size: 0.75rem; /* Smaller */
    color: #a78bfa;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ps-dot {
    width: 8px;
    height: 8px;
    background: #a78bfa;
    border-radius: 50%;
    box-shadow: 0 0 10px #a78bfa;
}
.ps-link-icon {
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.ps-link-icon:hover {
    color: #fff;
}

.ps-card-title {
    font-size: 1.2rem; /* Smaller font */
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}
.ps-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem; /* Smaller font */
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Footer & Tech Tags */
.ps-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.ps-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ps-tech-tag {
    font-size: 0.8rem;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ps-btn {
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
    white-space: nowrap;
}
.ps-btn:hover {
    box-shadow: 0 5px 15px rgba(167, 139, 250, 0.4);
    color: #fff;
}

.ps-view-all-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.ps-view-all-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
}

/* Light Mode Overrides for View All Button */
.light-mode .ps-view-all-btn {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}
.light-mode .ps-view-all-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Utility Colors for Tech Tags */
.ps-text-orange { color: #f97316; }
.ps-text-blue { color: #3b82f6; }
.ps-text-yellow { color: #eab308; }
.ps-text-purple { color: #a855f7; }
.ps-text-green { color: #22c55e; }
.ps-text-pink { color: #ec4899; }
.ps-text-gray { color: #9ca3af; }

/* Responsive */
@media (max-width: 1100px) {
    .ps-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}
@media (max-width: 768px) {
    .ps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .ps-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .ps-title {
        font-size: 2.5rem; /* Smaller title on mobile */
    }
}

/* --- Roadmap Timeline --- */
.roadmap-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 0;
}

.roadmap-container * {
    box-sizing: border-box;
}

.roadmap-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--glass-border);
    transform: translateX(-50%);
    border-radius: 2px;
}

.roadmap-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%; /* GSAP controls this */
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 15px var(--accent-primary);
    border-radius: 2px;
}

.roadmap-node {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 50%;
    padding-right: 50px;
    position: relative;
    margin-bottom: 60px;
    opacity: 0; /* For GSAP */
    box-sizing: border-box;
}

.roadmap-node:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50px;
    margin-left: 50%;
}

.roadmap-node::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-secondary);
    border: 4px solid var(--accent-secondary);
    border-radius: 50%;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-secondary);
}

.roadmap-node:nth-child(even)::after {
    right: auto;
    left: -10px;
}

.roadmap-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 480px; /* Slightly wider to fit 2 columns nicely */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Flex layout for 2 columns */
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center vertically */
    gap: 20px;
}

.roadmap-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.15);
}

.roadmap-text {
    flex: 1; /* Take up remaining space */
}

.roadmap-date {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(123, 66, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.roadmap-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.roadmap-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.roadmap-logo-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05); /* Subtle background for logo */
    border-radius: 12px; /* Soft square instead of circle to prevent cutting rectangular logos */
    padding: 10px;
}

.roadmap-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Prevents cutting off any logo format */
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
    transition: filter 0.3s ease;
}

.light-mode .roadmap-logo {
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
}

/* --- Split Contact --- */
.contact-split {
    display: flex;
    gap: 60px;
    align-items: center;
}

.contact-left {
    flex: 1;
}

.contact-left h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-left p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 400px;
}

.contact-right {
    flex: 1;
}

.modern-contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
}

.floating-input {
    position: relative;
    margin-bottom: 30px;
}

.floating-input input, .floating-input textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.floating-input textarea {
    resize: vertical;
    min-height: 100px;
}

.floating-input label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-input input:focus, .floating-input textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-primary);
}

.floating-input input:focus ~ label,
.floating-input input:valid ~ label,
.floating-input textarea:focus ~ label,
.floating-input textarea:valid ~ label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.btn-swipe {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--text-main);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-swipe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    z-index: -1;
    transition: left 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.btn-swipe:hover::before {
    left: 0;
}

/* Certifications */
.certifications-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    padding: 25px;
    text-align: center;
    border-radius: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 450px;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.cert-card:hover::before {
    opacity: 0.05;
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cert-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    z-index: 1;
}

.cert-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

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

.cert-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cert-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.cert-content p {
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.cert-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    align-self: center;
    margin-top: auto;
}

@media (max-width: 992px) {
    .project-row, .project-row:nth-child(even) {
        flex-direction: column;
    }
    
    .contact-split {
        flex-direction: column;
    }
    
    .roadmap-node, .roadmap-node:nth-child(even) {
        width: 100%;
        padding: 0 0 0 40px;
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .roadmap-line {
        left: 20px;
    }
    
    .roadmap-node::after, .roadmap-node:nth-child(even)::after {
        left: 10px;
        right: auto;
    }
}

@media (max-width: 576px) {
    .roadmap-content {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 15px;
    }
    .roadmap-logo-container {
        margin-bottom: 5px;
    }
}

/* Extra Mobile Optimizations for very small screens */
@media (max-width: 480px) {
    .hero-section {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-content h1.glitch {
        font-size: 2.5rem;
    }
    .ps-title {
        font-size: 2rem;
    }
    .ps-filters {
        gap: 5px;
    }
    .ps-filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .roadmap-node, .roadmap-node:nth-child(even) {
        padding: 0 0 0 30px;
    }
    .glass-nav {
        padding: 10px 15px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .social-links {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}