/**
 * Prashant Rana Portfolio - Main Styles
 * Modern, Premium, Dark Navy Theme
 */

/* ============ CSS Variables ============ */
:root {
    /* Colors */
    /* Colors */
    --primary: #0f172a;
    /* Back to Dark Slate for brand/backgrounds */
    --primary-light: #1e293b;
    --primary-dark: #020617;
    --secondary: #334155;
    --accent: #2DD4BF;
    --accent-gold: #fbbf24;
    --accent-hover: #14B8A6;

    /* Backgrounds */
    --bg-light: #0f172a;
    /* Slate 900 - Main Dark BG */
    --bg-gray: #1e293b;
    /* Slate 800 - Secondary Dark BG */
    --bg-dark: #020617;
    /* Slate 950 - Deepest BG */
    /* Hero Backgrounds */
    --bg-hero-start: #0f172a;
    --bg-hero-end: #020617;

    /* Text */
    --text-primary: #f1f5f9;
    /* Slate 100 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --text-light: #64748b;
    /* Slate 500 */
    --text-white: #E2E8F0;
    /* Softer White for Dark Mode */

    /* Borders */
    --border-light: #334155;
    /* Slate 700 */
    --border-medium: #475569;
    /* Slate 600 */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(45, 212, 191, 0.15);

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --container-padding: 24px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* Light Theme Overrides */
[data-theme="light"] {
    /* Colors */
    --primary: #0A1A33;
    /* Classic Navy Brand Color */
    --primary-light: #173B6B;
    --primary-dark: #060F1F;
    --secondary: #64748B;
    --accent: #0f766e;
    /* Darker Teal for visibility on light */
    --accent-hover: #0F766E;

    /* Backgrounds */
    --bg-light: #FFFFFF;
    --bg-gray: #F8FAFC;
    --bg-dark: #E2E8F0;

    /* Hero Override */
    --bg-hero-start: #DBEAFE;
    /* Blue 100 */
    --bg-hero-end: #BFDBFE;
    /* Blue 200 */

    /* Text */
    --text-primary: #0F172A;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-light: #64748B;
    /* Slate 500 */
    --text-white: #0F172A;
    /* Invert 'white' text to dark for light mode */

    /* Borders */
    --border-light: #CBD5E1;
    --border-medium: #94A3B8;
}

/* ============ Reset & Base ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    border-color: var(--border-light);
}

/* ============ Container ============ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============ Section Base ============ */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
}

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

.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

/* ============ Navigation ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
    /* Ensure logo is visible */
    background: transparent;
    -webkit-text-fill-color: var(--text-white);
}

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

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

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

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

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

.nav-cta {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--text-white) !important;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition-base);
}

.hamburger {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ============ Hero Section ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(45, 212, 191, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(23, 59, 107, 0.3) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* 3D Background - Full screen behind content */
.hero-3d-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: auto;
    cursor: grab;
}

.hero-3d-background:active {
    cursor: grabbing;
}

.hero-3d-background canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

/* Legacy container - kept for backward compatibility */
.hero-3d-container {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
}

.placeholder-3d {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
}

.placeholder-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.avatar-initials {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.placeholder-text {
    font-size: 14px;
    font-weight: 500;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    padding-top: 80px;
}

.hero-text {
    max-width: 650px;
}

.hero-greeting {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-name {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Added shadow for better contrast */
}

.hero-tagline {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
}

/* Social Links */
.hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 212, 191, 0.3);
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition-base);
    padding: 16px 24px;
    min-height: 48px;
}

.scroll-indicator:hover {
    color: var(--accent);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    animation: bounce 2s infinite;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes bounce {

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

    40% {
        transform: translateY(8px);
    }

    60% {
        transform: translateY(4px);
    }
}

/* ============ About Section ============ */
.about {
    background: var(--bg-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    color: var(--text-primary);
}

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.profile-photo {
    aspect-ratio: 4/5;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.placeholder-inner {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.placeholder-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.placeholder-label {
    font-size: 14px;
    font-weight: 500;
}

.about-image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
    top: 20px;
    left: 20px;
    z-index: -1;
}

.about-text {}

.about-intro {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.highlights-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card, rgba(30, 41, 59, 0.5));
    /* Semi-transparent Slate 800 */
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    transition: var(--transition-base);
}

.highlight-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.8);
}

.highlight-icon {
    font-size: 24px;
    line-height: 1;
    color: var(--accent);
}

.highlight-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============ Skills Section ============ */
.skills {
    background: var(--bg-light);
}

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

.skill-category {
    background: rgba(30, 41, 59, 0.4);
    /* Darker slate */
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.skill-category:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
    background: rgba(30, 41, 59, 0.7);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-category-icon {
    font-size: 28px;
}

.skill-category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.skill-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============ Experience Section ============ */
.experience {
    background: var(--bg-gray);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent) 0%, var(--primary) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -7px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 3px solid var(--bg-gray);
    border-radius: 50%;
}

.timeline-content {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.timeline-company {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.timeline-location {
    font-size: 14px;
    color: var(--text-light);
}

.timeline-role {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-period {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    background: rgba(45, 212, 191, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.timeline-highlights {
    margin-top: 16px;
    padding-left: 16px;
}

.timeline-highlights li {
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 16px;
}

.timeline-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ============ Projects Section ============ */
.projects {
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.project-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 48px;
}

.project-content {
    padding: 24px;
}

.project-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.project-link:hover {
    color: var(--text-white);
}

.project-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-base);
}

.project-link:hover svg {
    transform: translateX(4px);
}

/* ============ Certificates Section ============ */
.certificates {
    background: var(--bg-gray);
}

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

.certificate-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.certificate-card.has-image {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.certificate-card.has-image .certificate-content {
    padding: 20px 28px 28px;
}

.certificate-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-gold) 100%);
    z-index: 1;
}

.certificate-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.certificate-icon {
    width: 48px;
    height: 48px;
    background: rgba(45, 212, 191, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.certificate-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.certificate-org {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.certificate-year {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.certificate-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 12px;
    transition: var(--transition-base);
}

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

/* ============ Education Section ============ */
.education {
    background: var(--bg-light);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.education-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
    display: flex;
    gap: 20px;
}

.education-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.education-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.education-content {
    flex: 1;
}

.education-institution {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.education-location {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.education-degree {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.education-board {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

/* ============ Services Section ============ */
.services {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
}

.services .section-tag {
    color: var(--accent);
}

.services .section-title {
    color: var(--text-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: var(--transition-base);
    position: relative;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-8px);
}

.service-card.featured {
    border-color: var(--accent);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-icon {
    width: 64px;
    height: 64px;
    color: var(--accent);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

.service-list {
    margin-bottom: 28px;
}

.service-list li {
    position: relative;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 24px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.service-card .btn-primary {
    width: 100%;
    background: var(--accent);
    color: var(--primary);
}

.service-card .btn-primary:hover {
    background: var(--accent-hover);
}

/* ============ Contact Section ============ */
.contact {
    background: var(--bg-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-info>p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-icon {
    font-size: 20px;
}

.contact-availability h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.contact-availability ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-availability li {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

.contact-form-wrapper {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form {}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(45, 212, 191, 0.1);
    color: #059669;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============ Footer ============ */
.footer {
    background: var(--primary);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-socials .social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-socials .social-link svg {
    width: 16px;
    height: 16px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-nav a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

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

.footer-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.2s;
}

.admin-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.1);
}

.admin-link svg {
    opacity: 0.7;
}

/* ============ Empty States ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-medium);
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

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

/* ============ Image Lightbox ============ */
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.image-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: var(--primary);
    line-height: 1;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* ============ Loading ============ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader-circle {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .hero-3d-container {
        display: none;
    }

    /* Mobile: 3D model still visible in background */
    .hero-3d-background {
        display: block;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-light);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 16px;
        padding: 8px 0;
    }

    .nav-cta {
        margin-top: 8px;
    }

    /* Mobile hero - 3D model above text */
    .hero {
        min-height: 100vh;
        align-items: flex-end;
        padding-bottom: 20px;
    }

    .hero-content {
        padding-top: 50vh;
        /* Push content down - model appears in top half */
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
        font-size: 15px;
    }

    .hero-name {
        font-size: 38px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .btn {
        padding: 12px 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .timeline::before {
        left: 7px;
    }

    .timeline-item {
        padding-left: 32px;
    }

    .timeline-marker {
        left: 0;
        width: 14px;
        height: 14px;
    }
}