/* ================================================================
   VIVEKANAND CHANDNANI - MODERN MONOCHROME PORTFOLIO 2025
   Black/White/Gray + Vibrant Cyan | Award-Winning Design
   ================================================================ */

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

:root {
    /* Monochrome Colors */
    --black: #0A0A0A;
    --gray-900: #171717;
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-400: #A3A3A3;
    --gray-300: #D4D4D4;
    --gray-100: #F5F5F5;
    --white: #FFFFFF;

    /* Vibrant Cyan Accent */
    --cyan: #06B6D4;
    --cyan-light: #22D3EE;
    --cyan-dark: #0891B2;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;

    /* Standardized Design Tokens */
    --border-radius-sm: 12px;
    --border-radius-lg: 20px;
    --transition-speed: 0.3s;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --card-padding: 2.5rem;
    --touch-target-min: 44px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom selection color */
::selection {
    background: var(--cyan);
    color: var(--black);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-900);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyan), var(--cyan-dark));
    border-radius: 6px;
    border: 2px solid var(--gray-900);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--cyan-light), var(--cyan));
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 80px; /* Space for fixed navigation */
    /* iOS safe area support for notch and home indicator */
    padding-top: max(80px, env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-tap-highlight-color: rgba(6, 182, 212, 0.2);
    position: relative;
}

/* Particle Canvas Background */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

/* ================================================================
   STICKY NAVIGATION
   ================================================================ */

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-800);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-bar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 2rem;
}

.nav-logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    color: var(--cyan-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    color: var(--gray-400);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition-speed) var(--transition-timing);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--cyan);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 80px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
    z-index: 1002;
    transition: width 0.1s ease;
    pointer-events: none;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    /* Ensure content doesn't push below viewport */
    max-height: 100vh;
    box-sizing: border-box;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    /* Prevent content overflow */
    max-height: calc(100vh - 150px);
    overflow: visible;
}

/* Text Content */
.hero-text {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--cyan);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: var(--spacing-md);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.hero-name {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--white), var(--gray-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-tagline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 2.5rem;
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    max-width: 650px;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Edge Badges */
.edge-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: var(--spacing-lg);
}

.edge-badge {
    padding: 0.6rem 1.25rem;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-300);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.edge-badge:hover {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.05);
    transform: translateY(-2px);
}

.edge-badge .icon {
    font-size: 1.1rem;
}

/* Stats Bar in Hero */
.stats-bar-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: var(--spacing-lg);
    padding: 1.5rem 0;
}

.stat-hero {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-hero .stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--cyan);
    line-height: 1;
}

.stat-hero .stat-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-700);
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2rem;
}

.btn-primary {
    padding: 1.25rem 2.5rem;
    background: var(--cyan);
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: var(--touch-target-min);
    transition: all var(--transition-speed) var(--transition-timing);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

.btn-primary svg {
    position: relative;
    z-index: 2;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    z-index: 0;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}

.btn-primary:hover {
    background: var(--cyan-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    padding: 1.25rem 2.5rem;
    background: transparent;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid var(--gray-700);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: var(--touch-target-min);
    transition: all var(--transition-speed) var(--transition-timing);
    position: relative;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--black);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.btn-secondary:hover svg {
    color: var(--black);
    stroke: var(--black);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Hero Photo */
.hero-photo {
    position: relative;
    animation: fadeInRight 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent overflow on large screens */
    max-height: calc(100vh - 200px);
    overflow: visible;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.photo-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.photo-frame {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%; /* Perfect circle */
    overflow: hidden;
    border: 3px solid var(--cyan);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) var(--transition-timing);
    background: var(--black);
}

.photo-frame:hover {
    box-shadow: 0 15px 50px rgba(6, 182, 212, 0.2);
    transform: translateY(-5px);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    transition: transform var(--transition-speed) var(--transition-timing);
}

.photo-frame:hover img {
    transform: scale(1.05);
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */

.about-section {
    padding: var(--spacing-2xl) 0;
    background: var(--gray-900);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--cyan);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--white), var(--gray-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Personality Grid */
.personality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
}

.personality-card {
    background: var(--black);
    border: 1px solid var(--gray-800);
    border-radius: var(--border-radius-lg);
    padding: var(--card-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-timing);
}

.personality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cyan);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.personality-card:hover::before {
    transform: scaleX(1);
}

.personality-card:hover {
    border-color: var(--cyan);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2);
}

.personality-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    filter: grayscale(0%);
    transition: all 0.4s ease;
}

.personality-card:hover .personality-icon {
    transform: scale(1.1);
}

.personality-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.personality-card p {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ================================================================
   WHAT I DO SECTION
   ================================================================ */

.services-section {
    padding: var(--spacing-2xl) 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

/* Subtle Network Grid */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 95%, rgba(6, 182, 212, 0.02) 100%),
        linear-gradient(0deg, transparent 95%, rgba(6, 182, 212, 0.02) 100%);
    background-size: 80px 80px;
    animation: gridFade 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gridFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.service-card {
    background: linear-gradient(145deg, var(--gray-900), rgba(23, 23, 23, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: var(--card-padding);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    will-change: transform;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(6, 182, 212, 0.15),
        inset 0 1px 0 rgba(6, 182, 212, 0.2);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.service-card p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--cyan);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--cyan);
    color: var(--black);
}

/* ================================================================
   EXPERIENCE TIMELINE
   ================================================================ */

.experience-section {
    padding: var(--spacing-2xl) 0;
    background: var(--gray-900);
}

.timeline {
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), var(--gray-800));
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: var(--spacing-lg);
}

.timeline-dot {
    display: none;
}

.timeline-card {
    background: var(--black);
    border: 1px solid var(--gray-800);
    border-radius: var(--border-radius-sm);
    padding: var(--card-padding);
    transition: all var(--transition-speed) var(--transition-timing);
}

.timeline-card:hover {
    border-color: var(--cyan);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.company-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.timeline-card p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-tags span {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--cyan);
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
}

.timeline-tags span:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--cyan);
    transform: translateY(-2px);
}

/* ================================================================
   EDUCATION SECTION
   ================================================================ */

.education-section {
    padding: var(--spacing-2xl) 0;
    background: var(--black);
}

.education-grid-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.education-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: var(--border-radius-lg);
    padding: var(--card-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-timing);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--cyan);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.education-card:hover::before {
    transform: scaleX(1);
}

.education-card:hover {
    border-color: var(--cyan);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2);
}

.education-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.edu-institution {
    font-size: 1rem;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.education-card p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: var(--spacing-sm);
}

.edu-tags span {
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--cyan);
}

.edu-logo {
    margin-bottom: 1.5rem;
}

.uni-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
}

.edu-specialization {
    font-size: 0.95rem;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.edu-date {
    font-size: 0.95rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.edu-grade {
    font-size: 0.95rem;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.edu-activities {
    font-size: 0.9rem;
    color: var(--gray-400);
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* ================================================================
   LESSONS SECTION - What Sales Taught Me About Architecture
   ================================================================ */

.lessons-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, var(--black) 0%, rgba(18, 18, 18, 0.98) 50%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.lessons-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.6;
}

.lessons-grid {
    display: grid;
    gap: 3rem;
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.lesson-card {
    background: linear-gradient(135deg, var(--gray-900) 0%, rgba(18, 18, 18, 0.95) 100%);
    border: 1px solid var(--gray-800);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    position: relative;
    transition: all var(--transition-speed) var(--transition-timing);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lesson-card:hover::before {
    opacity: 1;
}

.lesson-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.lesson-card:hover::after {
    opacity: 1;
}

.lesson-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
}

.lesson-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.lesson-card > h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
}

.lesson-card > h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan) 0%, transparent 100%);
    border-radius: 2px;
}

.lesson-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.lesson-block:hover {
    background: rgba(0, 0, 0, 0.5);
    border-left-color: var(--cyan);
    transform: translateX(5px);
}

.lesson-block:last-child {
    margin-bottom: 0;
}

.lesson-block h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.lesson-block h4::before {
    content: '▸';
    margin-right: 0.5rem;
    font-size: 1.2rem;
    color: var(--cyan);
}

.lesson-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-300);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lesson-card {
        padding: 1.75rem;
    }

    .lesson-card > h3 {
        font-size: 1.4rem;
    }

    .lesson-block h4 {
        font-size: 1rem;
    }

    .lesson-block p {
        font-size: 1rem;
    }
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */

.contact-section {
    padding: var(--spacing-2xl) 0;
    background: var(--gray-900);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.contact-card {
    background: var(--black);
    border: 1px solid var(--gray-800);
    border-radius: var(--border-radius-lg);
    padding: var(--card-padding);
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: var(--touch-target-min);
}

.contact-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card:hover {
    border-color: var(--cyan);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2);
}

.contact-icon {
    font-size: 3.5rem;
    transition: transform 0.4s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.linkedin-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
}

.linkedin-in {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
    letter-spacing: -0.05em;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin: 0;
}

.contact-link {
    font-size: 1.1rem;
    color: var(--cyan);
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word;
}

.location-card {
    cursor: default;
}

.location-card .contact-link {
    color: var(--gray-400);
    font-weight: 500;
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
    padding: var(--spacing-md) 0;
    background: var(--black);
    text-align: center;
    border-top: 1px solid var(--gray-800);
}

.footer p {
    color: var(--gray-400);
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */

/* ================================================================
   ANIMATIONS & VISUAL POLISH
   ================================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

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

/* Staggered animations for cards */
.service-card,
.education-card,
.lesson-card,
.timeline-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing effect for buttons */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: inherit;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 0.5;
}

/* ================================================================
   RESPONSIVE - COMPREHENSIVE COVERAGE
   ================================================================ */

/* ===== DESKTOP & LAPTOP SCREENS ===== */

/* Large Desktop Screens (27", 32" and above) */
@media (min-width: 1681px) {
    .hero {
        min-height: 100vh;
        /* Optimize spacing for desktop - similar to laptop */
        --spacing-sm: 0.4rem;
        --spacing-md: 0.8rem;
        --spacing-lg: 1.2rem;
    }

    .hero-name {
        margin-bottom: 8px;
    }

    .hero-tagline {
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 1.15rem;
        margin-bottom: 15px;
        line-height: 1.5;
        max-width: 700px;
    }

    .edge-badges {
        margin-bottom: 0.8rem !important;
    }

    .stats-bar-hero {
        padding: 0.5rem 0 !important;
        margin-bottom: 0.8rem !important;
    }

    .stat-hero .stat-number {
        font-size: 1.8rem !important;
    }

    .stat-hero .stat-label {
        font-size: 0.7rem !important;
    }

    .hero-cta {
        margin-top: 0.8rem !important;
        gap: 1rem !important;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    .hero-cta .btn-primary svg,
    .hero-cta .btn-secondary svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* 15-17" Laptops including user's 1600x900 screen */
@media (max-width: 1680px) and (min-width: 1280px) {
    .hero {
        min-height: 100vh;
        padding: 1.5rem 0;
        display: flex;
        align-items: center;
        /* Override spacing variables for this section - compressed for button visibility */
        --spacing-sm: 0.3rem;
        --spacing-md: 0.6rem;
        --spacing-lg: 0.9rem;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 3rem;
        align-items: start;
        width: 100%;
        max-width: 1300px;
        margin: 0 auto;
    }

    /* Align photo with the name text */
    .hero-photo {
        margin: 0;
        padding: 0;
        /* Reduced top margin for better fit */
        margin-top: 20px;
    }

    .photo-container {
        margin: 0;
        padding: 0;
    }

    .hero-text {
        margin: 0;
        padding: 0;
    }

    /* Larger photo frame */
    .photo-frame {
        width: 380px;
        height: 380px;
        margin: 0;
    }

    .hero-name {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
        line-height: 0.95;
    }

    .hero-tagline {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
        line-height: 1.35;
    }

    /* Keep left alignment for better readability */
    .edge-badges {
        justify-content: flex-start;
        margin-bottom: 0.6rem !important;
    }

    .stats-bar-hero {
        justify-content: flex-start;
        padding: 0.5rem 0 !important;
        gap: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .stat-hero .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-hero .stat-label {
        font-size: 0.65rem !important;
    }

    .stat-divider {
        height: 30px !important;
    }

    .hero-cta {
        justify-content: flex-start;
        gap: 0.75rem !important;
        margin-top: 0.8rem !important;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
        min-height: auto !important;
        gap: 0.4rem !important;
    }

    .hero-cta .btn-primary svg,
    .hero-cta .btn-secondary svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Fix section alignment consistency */
    .container {
        max-width: 1300px;
        padding: 0 3rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Fix service cards grid alignment - 2x2 layout for 4 cards */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        justify-items: stretch;
    }

    .service-card {
        width: 100%;
    }

    /* Fix timeline alignment */
    .timeline {
        padding-left: 2rem;
    }

    /* Ensure consistent text alignment */
    .section-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Standard Laptops (1366px - common 13-14" laptops) */
@media (max-width: 1279px) and (min-width: 1024px) {
    .container {
        max-width: 1140px;
        padding: 0 2rem;
    }

    .hero {
        min-height: calc(100vh - 80px);
        padding: 15px 0;
        display: flex;
        align-items: flex-start;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1.3fr 0.7fr;
        gap: 2rem;
        align-items: start;
        width: 100%;
        padding-top: 10px;
    }

    .hero-text {
        padding-top: 30px;
    }

    .hero-photo {
        margin: 0;
        padding: 0;
    }

    .photo-frame {
        width: 350px;
        height: 350px;
    }

    .hero-name {
        font-size: 4.5rem;
    }

    .hero-tagline {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }

    .personality-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .education-grid-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 3rem;
    }

    .section-subtitle {
        font-size: 1.15rem;
    }
}

/* Small Laptops (1280px - 13" laptops) */
@media (max-width: 1280px) {
    .container {
        max-width: 1080px;
        padding: 0 1.5rem;
    }

    .hero {
        min-height: auto;
        align-items: flex-start;
        padding-top: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr 320px;
        gap: 2.5rem;
        align-items: start;
    }

    .hero-photo {
        margin-top: 0;
        align-self: start;
    }

    .photo-frame {
        width: 320px;
        height: 320px;
    }

    .hero-name {
        font-size: 4rem;
    }

    .hero-tagline {
        font-size: 1.85rem;
    }

    .section-title {
        font-size: 2.75rem;
    }
}

/* Intermediate Large Screens (1200px - for better grid transitions) */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .hero {
        min-height: auto;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
        align-items: start;
    }

    .hero-photo {
        margin-top: 0;
        align-self: start;
    }

    .photo-frame {
        width: 300px;
        height: 300px;
    }

    .personality-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-name {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.65rem;
    }
}

/* Tablet & Smaller Laptops (1024px and below) */
@media (max-width: 1024px) {
    .personality-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .personality-card {
        padding: 2rem;
    }

    .personality-icon {
        font-size: 2.5rem;
    }

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

    .service-card {
        min-height: 400px;
    }

    .service-icon {
        font-size: 3rem;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .education-grid-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .education-card {
        padding: 2rem;
    }

    .uni-logo {
        width: 56px;
        height: 56px;
    }

    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-icon {
        font-size: 3rem;
    }

    .timeline-card h3 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* ===== TABLET SCREENS (768px and below) ===== */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        padding-top: 70px;
        overflow-x: hidden;
    }

    html {
        overflow-x: hidden;
        width: 100%;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* HERO SECTION - COMPLETE MOBILE REDESIGN */
    .hero {
        min-height: auto !important;
        height: auto !important;
        padding: 2rem 0 !important;
        display: block !important;
    }

    .hero-content {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* HIDE PHOTO ON MOBILE */
    .hero-photo {
        display: none !important;
    }

    .hero-text {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero-label {
        font-size: 0.7rem !important;
        display: block !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }

    .hero-name {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin: 0 0 1rem 0 !important;
        padding: 0 1rem !important;
        word-wrap: break-word !important;
        width: 100% !important;
    }

    .hero-tagline {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        margin: 0 0 1rem 0 !important;
        padding: 0 1rem !important;
        width: 100% !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        text-align: center !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0 1rem !important;
        width: 100% !important;
    }

    .edge-badges {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0 0.5rem !important;
    }

    .edge-badge {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
        flex: 0 0 auto !important;
    }

    .stats-bar-hero {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        margin: 0 0 2rem 0 !important;
        padding: 0 !important;
    }

    .stat-hero {
        text-align: center !important;
    }

    .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        width: 100% !important;
        padding: 0 1rem !important;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        text-align: center !important;
    }

    /* Mobile Navigation */
    .nav-content {
        padding: 1rem 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--gray-800);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

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

    .nav-link {
        font-size: 1.1rem;
        text-align: center;
        padding: 0.75rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .scroll-progress {
        top: 70px;
    }

    /* Container */
    .container {
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .personality-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .personality-card {
        padding: 1.75rem;
    }

    .personality-card h3 {
        font-size: 1.15rem;
    }

    .personality-card p {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .service-icon {
        font-size: 2.75rem;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
        word-break: break-word;
    }

    .education-card h3 {
        font-size: 1.4rem;
    }

    .edu-institution {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .uni-logo {
        width: 48px;
        height: 48px;
    }

    .lesson-card {
        padding: 2rem;
    }

    .lesson-number {
        font-size: 2.5rem;
    }

    .lesson-card > h3 {
        font-size: 1.5rem;
    }

    .lesson-block {
        padding: 1.25rem;
    }

    .contact-card h3 {
        font-size: 1.25rem;
    }

    .contact-link {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .contact-icon {
        font-size: 2.75rem;
    }

    .linkedin-icon {
        width: 56px;
        height: 56px;
    }

    .linkedin-in {
        font-size: 2.25rem;
    }

    .stats-bar-hero {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        text-align: center;
    }

    .stat-divider {
        display: none;
    }

    .edge-badges {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }

    /* Timeline */
    .timeline::before {
        left: 15px;
    }

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

    /* FORCE ALL GRIDS TO SINGLE COLUMN ON MOBILE */
    .services-grid,
    .education-grid-section,
    .personality-grid,
    .contact-methods,
    .lessons-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Ensure cards take full width */
    .service-card,
    .education-card,
    .personality-card,
    .contact-card,
    .lesson-card {
        width: 100%;
        max-width: 100%;
    }

    /* Responsive text wrapping */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Small Mobile (480px and below) */
/* ===== MOBILE SCREENS ===== */

/* Small Mobile (320px - iPhone SE, Galaxy S8) */
@media (max-width: 374px) {
    .container {
        padding: 0 0.85rem;
    }

    /* Hero section - Optimized for smallest screens */
    .hero {
        padding: 1.25rem 0 1.75rem;
    }

    .hero-label {
        font-size: 0.6rem !important;
    }

    .hero-name {
        font-size: 1.65rem !important;
        line-height: 1.15 !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-tagline {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-description {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        padding: 0;
    }

    .photo-frame {
        width: 200px;
        height: 200px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .service-card,
    .education-card,
    .lesson-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Medium Mobile (375px - iPhone 12/13/14) */
@media (min-width: 375px) and (max-width: 413px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-name {
        font-size: 2.25rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .photo-frame {
        width: 220px;
        height: 220px;
    }
}

/* Large Mobile (414px - iPhone Plus, Pixel) */
@media (min-width: 414px) and (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .photo-frame {
        width: 240px;
        height: 240px;
    }
}

/* All Mobile Devices Common Fixes */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.85rem;
    }

    .section-label {
        font-size: 0.7rem;
    }

    /* About Section - Personality Cards */
    .personality-card {
        padding: 1.5rem;
    }

    .personality-icon {
        font-size: 2.25rem;
    }

    .personality-card h3 {
        font-size: 1.05rem;
    }

    .personality-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Services Section */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    /* Timeline Section */
    .timeline::before {
        left: 15px;
    }

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

    .timeline-card {
        padding: 1.5rem;
    }

    .timeline-card h3 {
        font-size: 1.25rem;
    }

    .timeline-company {
        font-size: 0.95rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .company-logo {
        width: 20px;
        height: 20px;
    }

    .timeline-tags span {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    /* Education Section */
    .education-card {
        padding: 1.5rem;
    }

    .uni-logo {
        width: 40px;
        height: 40px;
    }

    .education-card h3 {
        font-size: 1.25rem;
    }

    .edu-institution,
    .edu-specialization {
        font-size: 0.85rem;
    }

    .edu-tags span {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    /* Lessons Section */
    .lesson-card {
        padding: 1.5rem;
    }

    .lesson-number {
        font-size: 2rem;
    }

    .lesson-card > h3 {
        font-size: 1.25rem;
    }

    .lesson-block {
        padding: 1rem;
    }

    .lesson-block h4 {
        font-size: 0.75rem;
    }

    .lesson-block p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Contact Section */
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1.75rem;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .linkedin-icon {
        width: 48px;
        height: 48px;
    }

    .linkedin-in {
        font-size: 2rem;
    }

    .contact-card h3 {
        font-size: 1.15rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    .contact-link {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }

    .footer p {
        font-size: 0.75rem;
        line-height: 1.8;
        padding: 0 0.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* iPhone SE & Very Small Screens (375px and below) */
@media (max-width: 375px) {
    .stats-bar-hero {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .stat-hero {
        min-width: 80px;
    }

    .stat-hero .stat-number {
        font-size: 1.5rem;
    }

    .stat-hero .stat-label {
        font-size: 0.65rem;
    }

    .edge-badges {
        gap: 0.5rem;
    }

    .edge-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .footer p {
        font-size: 0.7rem;
        line-height: 1.9;
    }

    .hero-name {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Modern Smartphones - iPhone 12-17, Samsung Galaxy, Oppo (375px - 480px) */
@media (min-width: 375px) and (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
        max-width: 100%;
    }

    /* All grids single column */
    .services-grid,
    .education-grid-section,
    .personality-grid,
    .contact-methods,
    .lessons-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Hero section - IMPROVED FOR MOBILE */
    .hero {
        padding: 1.5rem 0 2.5rem;
    }

    .hero-label {
        font-size: 0.7rem !important;
        text-align: center;
    }

    .hero-name {
        font-size: 1.85rem !important;
        line-height: 1.15 !important;
        text-align: center;
        margin-bottom: 1rem !important;
    }

    .hero-tagline {
        font-size: 1.05rem !important;
        line-height: 1.3 !important;
        text-align: center;
        margin-bottom: 1rem !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        text-align: center;
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem;
    }

    .photo-frame {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100% !important;
        max-width: 100%;
    }

    /* Section titles */
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Cards */
    .service-card,
    .education-card,
    .personality-card,
    .lesson-card,
    .contact-card {
        padding: 1.5rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Tech tags */
    .tech-tags {
        gap: 0.5rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* Timeline */
    .timeline-card {
        padding: 1.5rem;
    }

    /* Footer */
    .footer p {
        font-size: 0.8rem;
        line-height: 1.8;
    }
}

/* Large Smartphones - iPhone Pro Max, Samsung Ultra (430px - 480px) */
@media (min-width: 430px) and (max-width: 480px) {
    .photo-frame {
        width: 260px;
        height: 260px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Android Mid-Range Phones - Samsung A-series, Oppo (360px - 400px) */
@media (min-width: 360px) and (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }

    /* Hero section optimized for smaller screens */
    .hero {
        padding: 1.5rem 0 2rem;
    }

    .hero-label {
        font-size: 0.65rem !important;
    }

    .hero-name {
        font-size: 1.75rem !important;
        line-height: 1.15 !important;
        margin-bottom: 0.85rem !important;
    }

    .hero-tagline {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.85rem !important;
    }

    .hero-description {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        padding: 0 0.25rem;
    }

    .photo-frame {
        width: 220px;
        height: 220px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .service-card,
    .education-card,
    .personality-card,
    .lesson-card {
        padding: 1.25rem;
    }

    /* Ensure edge badges wrap properly */
    .edge-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .edge-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 0.9rem 1.25rem;
    }
}

/* Extra Large Screens (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-name {
        font-size: 6.5rem;
    }

    .hero-tagline {
        font-size: 2.75rem;
    }

    .photo-frame {
        width: 450px;
        height: 450px;
    }
}

/* 27" Monitors & Full HD Screens (1920px) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 3rem;
    }

    /* Fix hero height to prevent footer clash */
    .hero {
        min-height: calc(100vh - 80px);
        max-height: 100vh;
        padding: 1rem 0;
        display: flex;
        align-items: center;
    }

    .hero-content {
        grid-template-columns: 1fr 480px;
        gap: 3rem;
        max-width: 1500px;
        align-items: center;
    }

    .hero-name {
        font-size: 6.5rem;
        line-height: 1.1;
    }

    .hero-tagline {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    /* Perfect circle for 27" screens */
    .photo-frame {
        width: 480px;
        height: 480px;
    }

    .section-title {
        font-size: 4.5rem;
    }

    .section-subtitle {
        font-size: 1.4rem;
    }

    /* Increase grid gaps for large displays */
    .personality-grid,
    .services-grid,
    .education-grid-section {
        gap: 3rem;
    }

    .contact-methods {
        gap: 3rem;
    }

    /* Scale up card content */
    .service-card,
    .education-card,
    .lesson-card {
        padding: 3rem;
    }

    .service-card h3,
    .education-card h3,
    .lesson-card h3 {
        font-size: 2rem;
    }
}

/* 32" Professional Monitors (2048px-2560px) */
@media (min-width: 2048px) and (max-width: 2559px) {
    .container {
        max-width: 1800px;
        padding: 0 3.5rem;
    }

    /* Prevent footer clash on 32" screens */
    .hero {
        min-height: calc(100vh - 80px);
        max-height: 100vh;
        padding: 1rem 0;
        display: flex;
        align-items: center;
    }

    .hero-content {
        grid-template-columns: 1fr 500px;
        gap: 3rem;
        max-width: 1700px;
        align-items: center;
    }

    .hero-name {
        font-size: 7rem;
        line-height: 1.1;
    }

    .hero-tagline {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Perfect circle for 32" screens */
    .photo-frame {
        width: 500px;
        height: 500px;
    }

    .section-title {
        font-size: 5rem;
    }
}

/* Ultra-Wide/8K Screens (2560px and above) */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
        padding: 0 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr 650px;
        gap: 5rem;
        max-width: 1900px;
    }

    .hero-name {
        font-size: 9rem;
    }

    .hero-tagline {
        font-size: 4rem;
    }

    .hero-description {
        font-size: 1.75rem;
    }

    /* Large photo for ultra-wide displays */
    .photo-frame {
        width: 650px;
        height: 650px;
    }

    .section-title {
        font-size: 5.5rem;
    }

    .section-subtitle {
        font-size: 1.6rem;
    }

    /* Even larger gaps for ultra-wide */
    .personality-grid,
    .services-grid,
    .education-grid-section {
        gap: 4rem;
    }

    /* Scale fonts for readability */
    body {
        font-size: 1.125rem;
    }

    .service-card p,
    .education-card p,
    .lesson-block p {
        font-size: 1.2rem;
    }
}

/* 32-37" Displays (3840px - Large 4K monitors and TVs) */
@media (min-width: 3840px) {
    .container {
        max-width: 2400px;
        padding: 0 5rem;
    }

    .hero-name {
        font-size: 11rem;
    }

    .hero-tagline {
        font-size: 5rem;
    }

    .hero-description {
        font-size: 2rem;
        max-width: 900px;
    }

    .photo-frame {
        width: 700px;
        height: 700px;
    }

    .section-title {
        font-size: 6.5rem;
    }

    .section-subtitle {
        font-size: 1.85rem;
        max-width: 900px;
    }

    .personality-grid,
    .services-grid,
    .education-grid-section {
        gap: 5rem;
    }

    .contact-methods {
        gap: 4rem;
    }

    body {
        font-size: 1.25rem;
    }

    .service-card,
    .education-card,
    .lesson-card {
        padding: 4rem;
    }

    .service-card h3,
    .education-card h3,
    .lesson-card h3 {
        font-size: 2.5rem;
    }

    .service-card p,
    .education-card p,
    .lesson-block p {
        font-size: 1.4rem;
    }

    /* Larger touch targets for TV interfaces */
    .btn-primary,
    .btn-secondary {
        padding: 1.75rem 3.5rem;
        font-size: 1.5rem;
    }

    .nav-link {
        font-size: 1.25rem;
    }
}

/* 44-55" Displays (5120px - Large TVs and presentation screens) */
@media (min-width: 5120px) {
    .container {
        max-width: 3200px;
        padding: 0 6rem;
    }

    .hero-name {
        font-size: 14rem;
    }

    .hero-tagline {
        font-size: 6.5rem;
    }

    .hero-description {
        font-size: 2.5rem;
        max-width: 1200px;
    }

    .photo-frame {
        width: 850px;
        height: 850px;
        border: 5px solid var(--cyan);
    }

    .section-title {
        font-size: 8rem;
    }

    .section-subtitle {
        font-size: 2.25rem;
        max-width: 1200px;
    }

    .personality-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6rem;
    }

    .services-grid,
    .education-grid-section {
        gap: 6rem;
    }

    .contact-methods {
        gap: 5rem;
    }

    body {
        font-size: 1.5rem;
        line-height: 1.8;
    }

    .service-card,
    .education-card,
    .lesson-card {
        padding: 5rem;
    }

    .service-card h3,
    .education-card h3,
    .lesson-card h3 {
        font-size: 3.25rem;
    }

    .service-card p,
    .education-card p,
    .lesson-block p {
        font-size: 1.75rem;
        line-height: 1.9;
    }

    .btn-primary,
    .btn-secondary {
        padding: 2.25rem 4.5rem;
        font-size: 1.85rem;
    }

    .timeline-card {
        padding: 3.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 1rem;
    }
}

/* 75" Displays (7680px - 8K TVs and ultra-large displays) */
@media (min-width: 7680px) {
    .container {
        max-width: 4800px;
        padding: 0 8rem;
    }

    .hero-name {
        font-size: 18rem;
        letter-spacing: -0.02em;
    }

    .hero-tagline {
        font-size: 8.5rem;
    }

    .hero-description {
        font-size: 3.5rem;
        max-width: 1600px;
        line-height: 1.7;
    }

    .photo-frame {
        width: 1100px;
        height: 1100px;
        border: 6px solid var(--cyan);
    }

    .section-title {
        font-size: 10rem;
    }

    .section-subtitle {
        font-size: 3rem;
        max-width: 1600px;
    }

    .personality-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8rem;
    }

    .education-grid-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 8rem;
    }

    .contact-methods {
        grid-template-columns: repeat(3, 1fr);
        gap: 7rem;
    }

    body {
        font-size: 2rem;
        line-height: 1.9;
    }

    .service-card,
    .education-card,
    .lesson-card {
        padding: 7rem;
    }

    .service-card h3,
    .education-card h3,
    .lesson-card h3 {
        font-size: 4.5rem;
        margin-bottom: 2rem;
    }

    .service-card p,
    .education-card p,
    .lesson-block p {
        font-size: 2.25rem;
        line-height: 2;
    }

    .lesson-block h4 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 3rem 6rem;
        font-size: 2.5rem;
        border-radius: 20px;
    }

    .timeline-card {
        padding: 5rem;
    }

    .timeline-card h3 {
        font-size: 3rem;
    }

    .timeline-card p {
        font-size: 1.85rem;
    }

    .nav-logo {
        font-size: 3rem;
    }

    .nav-link {
        font-size: 2rem;
        padding: 1.5rem;
    }

    .edge-badge {
        padding: 1.25rem 2.5rem;
        font-size: 1.75rem;
    }

    .stat-hero .stat-number {
        font-size: 4rem;
    }

    .stat-hero .stat-label {
        font-size: 1.5rem;
    }
}

/* ================================================================
   HIGH-DPI DISPLAYS (Retina, 4K Laptops)
   ================================================================ */

/* 16" MacBook Pro (3072x1920), Dell XPS 15/17 4K, High-DPI laptops */
@media (-webkit-min-device-pixel-ratio: 2) and (min-width: 1920px),
       (min-resolution: 192dpi) and (min-width: 1920px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .hero-name,
    .section-title {
        font-weight: 800;
    }

    .photo-frame {
        border: 2px solid var(--cyan);
    }

    /* Sharper borders on high-DPI */
    .service-card,
    .education-card,
    .lesson-card,
    .timeline-card,
    .contact-card {
        border-width: 1px;
    }
}

/* 14-16" Retina Laptops (2560x1600, 2880x1800, 3072x1920) */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 1920px),
       (min-resolution: 192dpi) and (max-width: 1920px) {
    .container {
        max-width: 1200px;
    }

    .hero-content {
        grid-template-columns: 1fr 380px;
        gap: 3.5rem;
    }

    .photo-frame {
        width: 380px;
        height: 380px;
    }

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-size: 1.05rem;
    }

    .hero-name {
        font-size: 5rem;
    }

    .hero-tagline {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 3.5rem;
    }
}
