/* Global Variables & Reset */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8; /* Sky Blue */
    --accent-glow: rgba(56, 189, 248, 0.3);
    --gradient-1: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --nav-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-dark: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff;
    --text-primary: #1e293b; /* Slate 800 */
    --text-secondary: #475569; /* Slate 600 - Darker for better contrast */
    --accent: #0284c7; /* Sky 600 - darker for contrast on white */
    --accent-glow: rgba(2, 132, 199, 0.15);
}

body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3, 
body.light-mode h4,
body.light-mode strong {
    color: #0f172a;
}

body.light-mode .edu-card,
body.light-mode .contact-card {
    color: var(--text-primary);
}

body.light-mode .timeline-content p,
body.light-mode .timeline-content ul {
    color: var(--text-secondary);
}

body.light-mode .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-link {
    color: #475569;
}

body.light-mode .nav-link:hover, body.light-mode .nav-link.active {
    color: var(--accent);
}

body.light-mode .btn-secondary {
    border-color: rgba(0,0,0,0.2);
    color: var(--text-primary);
}

body.light-mode .btn-secondary:hover {
    background: rgba(0,0,0,0.05);
    border-color: var(--text-primary);
}

body.light-mode .about-card,
body.light-mode .timeline-item, 
body.light-mode .skill-category,
body.light-mode .edu-card {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body.light-mode .contact-form {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body.light-mode .timeline-item {
    padding: 32px;
    background: #ffffff;
    border-radius: var(--border-radius);
}

body.light-mode .timeline-dot {
    box-shadow: 0 0 0 4px #ffffff; /* Add white ring to separate from line if needed */
    left: -50px; /* Adjust for padding? No, dot is absolute. But if item has bg, we might need to adjust. */
    /* Wait, if the item has a background, the dot is outside. */
}

body.light-mode .mobile-toggle .bar {
    background-color: var(--text-primary);
}

body.light-mode .timeline {
    border-left-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .form-group input, 
body.light-mode .form-group textarea {
    background: #f1f5f9; /* Slate 100 - Visible input background */
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-mode .form-group input:focus, 
body.light-mode .form-group textarea:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

body.light-mode .btn-featured:hover {
    color: #ffffff;
    background: var(--accent);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
}

/* Typography Utils */
strong {
    color: #fff;
    font-weight: 600;
}

ul {
    list-style: none;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 3000;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid var(--accent);
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
}

.skip-link:focus-visible {
    top: 16px;
}

img {
    max-width: 100%;
}

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

.section-padding {
    padding: 100px 0;
}

section,
main {
    scroll-margin-top: calc(var(--nav-height) + 16px);
}

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

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

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

/* Navigation & Toggle */
.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

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

body.light-mode .theme-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.btn-featured {
    padding: 10px 24px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
}

.btn-featured:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero .subtitle {
    display: block;
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Background Gradients */
.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: #818cf8;
    bottom: 50px;
    left: -150px;
}

/* Section Common */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-card {
    position: relative;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Profile Thumbnail - Circular, top-right positioned */
.profile-thumbnail {
    /* Default: centered for mobile/tablet */
    display: block;
    margin: 0 auto 24px auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%; /* Adjust to show face properly */
    border: 2px solid var(--bg-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.profile-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 
                0 0 0 2px var(--accent);
}

/* Light mode adjustments */
body.light-mode .profile-thumbnail {
    border-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(56, 189, 248, 0.3);
}

body.light-mode .profile-thumbnail:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 
                0 0 0 2px var(--accent);
}

/* Large screens only - floating thumbnail in top-right */
@media (min-width: 1100px) {
    .profile-thumbnail {
        position: relative;
        float: right;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        margin: 0; /* Reset mobile centering */
    }
    
    .about-card {
        padding-right: 220px; /* Make room for thumbnail */
        min-height: 220px; /* Ensure card is tall enough */
    }
}

/* Medium to small screens - keep vertical layout */
@media (max-width: 1099px) {
    .about-card {
        padding: 32px 24px;
        text-align: left;
    }
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
}

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

.timeline-dot {
    position: absolute;
    left: -49px;
    top: 0px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 0 1px var(--accent);
}

.timeline-date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 16px;
}

.timeline-content p {
    color: #cbd5e1;
    margin-bottom: 12px;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-content ul li {
    margin-bottom: 6px;
}

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

.skill-category {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-category h3 i {
    color: var(--accent);
}

.skill-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.edu-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    transition: var(--transition);
}

.edu-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.edu-year {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.edu-card h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

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


/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.contact-card i {
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

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

.footer-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Scroll Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    opacity: 1;
}

.js-enabled .slide-up {
    animation: slideUp 0.8s cubic-bezier(0.5, 0, 0, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 900px) {
    .hero h1 { font-size: 3.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    
    .nav.nav-open .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1rem; }
    
    .timeline { left: 0; padding-left: 35px; }
    .timeline-dot { left: -44px; }
    
    .section-padding { padding: 60px 0; }
}

/* Generic Carousel Components */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    width: 100%;
}

.carousel-slider::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 100%; /* Mobile: 1 card per view */
    min-width: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(50% - 12px); /* Tablet: 2 cards */
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(33.333% - 16px); /* Desktop: 3 cards */
    }
}

/* Specific Card Styles */
.testimonial-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    border-left: 4px solid var(--accent);
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    flex-shrink: 0;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.5, 0, 0, 1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Mobile Adjustment for Back to Top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


.testimonial-card .quote-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 0.95rem;
    flex-grow: 1; /* Ensure consistent height alignment */
}

.testimonial-author h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
}

body.light-mode .testimonial-author h4 {
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}



/* === About Section Premium Card === */
/* === About Section Premium Card === */

.about-card {
    background: #1e293b; /* Dark slate blue/grey matching the image */
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.about-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.about-card h3 i {
    color: #fff; /* White icon as per image */
}

/* Light mode overrides for about card if needed, or keep it dark as a feature */
body.light-mode .about-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light-mode .about-card h3 {
    color: var(--text-primary);
}

body.light-mode .about-card h3 i {
    color: var(--text-primary);
}

.about-card p {
    color: #cbd5e1; /* Lighter text for dark background */
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-card p strong {
    color: #fff;
    font-weight: 600;
}

body.light-mode .about-card p {
    color: var(--text-secondary);
}

body.light-mode .about-card p strong {
    color: var(--text-primary);
}
.portfolio-category {
    margin-bottom: 60px;
}

.category-header {
    margin-bottom: 30px;
}

.category-header h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-header h3 i {
    color: var(--accent);
}

body.light-mode .category-header h3 {
    color: var(--text-primary);
}

.category-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.6;
}

.separator-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 60px 0;
}

body.light-mode .separator-line {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

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

.portfolio-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 700;
}

body.light-mode .portfolio-content h3 {
    color: var(--text-primary);
}

.portfolio-tech {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tech span {
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

body.light-mode .portfolio-tech span {
    background: rgba(56, 189, 248, 0.2);
}

.portfolio-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.2s ease;
    align-self: flex-start;
}

.portfolio-link:hover {
    gap: 12px;
    text-decoration: none;
}

/* Light Mode Specifics for Portfolio */
body.light-mode .portfolio-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .portfolio-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}



/* Testimonials verify link */
.testimonials-verify {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.testimonials-verify a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}




/* Ensure headers and verification text stack vertically and align left */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 2rem;
    gap: 8px;
}

.testimonials-verify {
    margin: 0;
    text-align: left;
    font-size: 0.95rem;
    padding-left: 4px; /* Slight offset to match title visual weight if needed, or 0 */
}

@media (max-width: 768px) {
    .section-header {
        align-items: center;
        text-align: center;
    }
    .testimonials-verify {
        text-align: center;
        padding-left: 0;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: 960px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    z-index: 2000;
    padding: 20px 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.cookie-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 640px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
}

.cookie-details {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cookie-details summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
    list-style: none;
}

.cookie-details summary::-webkit-details-marker {
    display: none;
}

.cookie-details ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style: disc;
}

.cookie-details li {
    margin-bottom: 6px;
}

body.light-mode .cookie-banner {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

body.light-mode .cookie-details summary {
    color: var(--accent);
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 18px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js-enabled .reveal,
    .js-enabled .reveal.active,
    .js-enabled .slide-up {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .cookie-banner {
        transition: none;
        transform: none;
    }
}
/* Form Message Styles */
.form-message {
    display: none;
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.form-message.show {
    opacity: 1;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-message.hidden {
    display: none;
}

/* Light mode form message styles */
body.light-mode .form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

body.light-mode .form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}
