/* ==========================================================================
   RAKESH DAS PORTFOLIO - MAIN STYLE SHEET (PREMIUM GLASSMORPHISM & GRADIENT DESIGN)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* --- Theme Variables --- */
:root {
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Theme Colors - Dark (Default) */
    --bg-primary: #0b0a12;
    --bg-secondary: #131224;
    --bg-gradient: linear-gradient(135deg, #0b0a12 0%, #151130 50%, #08070d 100%);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Accents & Gradients */
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #a855f7; /* Purple */
    --accent-pink: #ec4899; /* Pink */
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-glow: rgba(99, 102, 241, 0.15);
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --glass-blur: blur(16px);
    
    /* Utility colors */
    --white: #ffffff;
    --success: #10b981;
    --star: #fbbf24;
    --card-hover-bg: rgba(255, 255, 255, 0.06);

    /* Animation speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Variables */
:root.light-mode {
    --bg-primary: #f6f8fd;
    --bg-secondary: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f6f8fd 0%, #eef2ff 50%, #f0f4f8 100%);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --accent-primary: #4f46e5;
    --accent-secondary: #7c3aed;
    --accent-pink: #db2777;
    --gradient-accent: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    --gradient-glow: rgba(79, 70, 229, 0.08);

    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: rgba(31, 41, 55, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.7);
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background var(--transition-normal), color var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

li {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    outline: none;
    border: none;
    background: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

/* --- Decorative Background Blobs --- */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: floatBlob 25s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: var(--accent-primary);
}

.blob-2 {
    bottom: 10%;
    right: -10%;
    background: var(--accent-secondary);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 25vw;
    height: 25vw;
    background: var(--accent-pink);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.9); }
}

/* --- Glassmorphism Base Styles --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    border-radius: 20px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.glass-panel:hover {
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.15);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Layout Containers --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title span {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Preloader --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader-circle {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 6px solid transparent;
    border-radius: 50%;
    animation: loaderRotate 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--accent-primary) transparent transparent transparent;
}
.loader-circle:nth-child(1) { animation-delay: -0.45s; }
.loader-circle:nth-child(2) { animation-delay: -0.30s; }
.loader-circle:nth-child(3) { animation-delay: -0.15s; }

@keyframes loaderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

/* --- Floating Navbar --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

/* Dark/Light Toggle Switch */
.theme-toggle {
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
    font-size: 12px;
}

.theme-toggle .fa-sun {
    color: #f59e0b;
}

.theme-toggle .fa-moon {
    color: #818cf8;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-accent);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.light-mode .theme-toggle::before {
    transform: translateX(22px);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 22px;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

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

.hero-tag {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--gradient-accent);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px var(--gradient-glow);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

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

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
    height: 36px; /* Avoid layout shift during typing animation */
}

.hero-subtitle span {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-primary);
}

.hero-intro {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

/* Profile Photo Container */
.hero-img-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: floatImage 6s ease-in-out infinite alternate;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transform: scale(1.02);
    transition: transform var(--transition-normal);
}

.hero-image-wrapper:hover img {
    transform: scale(1.08);
}

.hero-img-decorations {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    animation: rotateDecor 20s linear infinite;
    pointer-events: none;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

@keyframes rotateDecor {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- About Me Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-info-card {
    padding: 20px;
}

.about-info-card h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.about-info-card p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.about-goals {
    padding: 24px;
    border-left: 4px solid var(--accent-primary);
}

.about-goals h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-goals p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* About Education Card */
.edu-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edu-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.edu-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 16px;
}

.edu-item:not(:last-child) {
    border-bottom: 1px dashed var(--glass-border);
}

.edu-icon {
    font-size: 18px;
    color: var(--accent-primary);
    margin-top: 4px;
}

.edu-details h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.edu-details p {
    font-size: 14px;
    color: var(--text-secondary);
}

.edu-year {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-pink);
    display: inline-block;
    margin-top: 4px;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}

.skills-column-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-column-title i {
    color: var(--accent-primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-bar-wrapper {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.skill-progress-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0; /* Dynamic width set by script */
    background: var(--gradient-accent);
    border-radius: 5px;
    transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Soft Skills Grid */
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.soft-skill-card {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.soft-skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 18px;
    box-shadow: 0 4px 10px var(--gradient-glow);
}

.soft-skill-card h4 {
    font-size: 16px;
    font-weight: 700;
}

.soft-skill-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Stats Counter Grid */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-card {
    padding: 30px 20px;
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Photo Gallery --- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-accent);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--gradient-glow);
}

/* Masonry Layout */
.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.gallery-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-item img {
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 10, 18, 0.9) 0%, rgba(11, 10, 18, 0.2) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.gallery-overlay span {
    font-size: 13px;
    color: var(--accent-pink);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 10, 18, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.lightbox-caption {
    color: var(--white);
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent-pink);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    background: var(--gradient-accent);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* --- Experience & Achievements Timeline --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: transparent;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--bg-primary);
    border: 4px solid var(--accent-primary);
    border-radius: 50%;
    top: 25px;
    z-index: 10;
    box-shadow: 0 0 10px var(--gradient-glow);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-card {
    padding: 30px;
    position: relative;
}

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

.timeline-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.timeline-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- Projects Portfolio --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-bottom: 1px solid var(--glass-border);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.project-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.project-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 50px;
    text-transform: uppercase;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.project-link:hover {
    color: var(--accent-primary);
}

/* --- Services & Pricing --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.service-icon {
    font-size: 38px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    display: inline-block;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.service-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.service-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    text-align: left;
    padding-left: 20px;
}

.service-features li {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
}

.service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -20px;
    color: var(--success);
}

/* --- Testimonials --- */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform var(--transition-normal);
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

.testimonial-card {
    padding: 40px;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    font-size: 18px;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-stars {
    color: var(--star);
    font-size: 14px;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.testimonial-author h4 {
    font-size: 16px;
    font-weight: 700;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Slider Controls */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-dot.active {
    background: var(--accent-primary);
    width: 24px;
    border-radius: 5px;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 18px;
    box-shadow: 0 4px 10px var(--gradient-glow);
}

.contact-card-details h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.contact-card-details p, .contact-card-details a {
    font-size: 16px;
    font-weight: 600;
}

.social-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--gradient-accent);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--gradient-glow);
}

.map-container {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

/* Contact Form */
.contact-form-panel {
    padding: 40px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input-wrapper {
    position: relative;
    width: 100%;
}

.form-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.form-input-wrapper textarea + i {
    top: 24px;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px var(--gradient-glow);
}

textarea.form-control {
    min-height: 120px;
    resize: none;
}

.form-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* --- Blog Ready Banner / Sub-section --- */
.blog-preview-banner {
    margin-top: 80px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.blog-banner-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-banner-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(11, 10, 18, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-info p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 320px;
}

.footer-links-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.social-share-btn:hover {
    background: var(--gradient-accent);
    color: var(--white);
    border-color: transparent;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE ADAPTATIONS)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 52px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-intro {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-img-container {
        order: -1;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    header {
        top: 10px;
    }
    
    .navbar {
        padding: 10px 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -110%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        padding: 40px 0;
        transition: left 0.4s ease;
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
        color: var(--text-primary);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .lightbox-nav {
        display: none; /* Hide nav arrows on mobile, support swipe/tap */
    }
    
    .lightbox-content {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-masonry {
        column-count: 1;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .blog-preview-banner {
        flex-direction: column;
        text-align: center;
    }
}
