/* --- CSS Variables & Theming --- */
:root {
    --bg-main: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(20, 20, 25, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f8f9fa;
    --text-secondary: #a0aab2;
    --accent-primary: #6366f1;
    --accent-secondary: #ec4899;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-norm: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* --- Dynamic Background --- */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

/* --- Glassmorphism Utility --- */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    border-radius: 16px;
}

/* --- Typography Utilities --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: block;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-norm);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #818cf8);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

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

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-norm);
}

nav.scrolled {
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    width: 90%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

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

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

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Sections --- */
.section {
    padding: 6rem 0;
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.name {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a0aab2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    height: 3rem; /* Prevents layout shift during typing */
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.hero-image-card {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: var(--transition-norm);
}

.hero-image-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.image-placeholder {
    font-size: 8rem;
    color: var(--border-glass);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* --- About Section --- */
.about-grid {
    display: flex;
    justify-content: center;
}

.about-text {
    padding: 3rem;
    max-width: 800px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

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

/* --- Experience Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--border-glass);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

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

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.timeline-content {
    padding: 2rem;
    transition: var(--transition-norm);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(99, 102, 241, 0.3);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-role {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

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

.skill-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-norm);
}

.skill-card:hover,
.skill-card.active:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.skill-card h3 {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    overflow: hidden;
    padding: 0; /* Override glass padding for image flush */
    display: flex;
    flex-direction: column;
    transition: var(--transition-norm);
}

.project-card:hover,
.project-card.active:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-image {
    width: 100%;
    height: 200px;
    transition: var(--transition-norm);
}

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

.project-info {
    padding: 2rem;
    background: var(--bg-glass);
    flex-grow: 1;
    z-index: 1;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
}

.project-link {
    color: var(--accent-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.contact-info {
    padding: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    font-size: 1.2rem;
    transition: var(--transition-norm);
}

.social-links a:hover {
    background: var(--accent-primary);
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.4);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* --- Business Leadership Section --- */
.leadership-card {
    padding: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(99, 102, 241, 0.15);
    position: relative;
}

.leadership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% 100%;
    animation: shimmer-bar 4s ease-in-out infinite;
}

@keyframes shimmer-bar {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Header */
.ldr-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 2.5rem 1.5rem;
    flex-wrap: wrap;
}

.ldr-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.ldr-header-text {
    flex: 1;
    min-width: 200px;
}

.ldr-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.15rem;
}

.ldr-company {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.ldr-linkedin {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-left: 0.4rem;
    transition: var(--transition-fast);
    vertical-align: middle;
}

.ldr-linkedin:hover {
    color: #0a66c2;
}

.ldr-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ldr-location i {
    color: var(--accent-secondary);
    font-size: 0.8rem;
}

.ldr-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
    50% { opacity: 0.6; box-shadow: 0 0 16px rgba(16, 185, 129, 0.9); }
}

/* Description */
.ldr-description {
    padding: 0 2.5rem 1.5rem;
}

.ldr-description p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-left: 3px solid rgba(99, 102, 241, 0.3);
    padding-left: 1rem;
}

/* Blocks */
.ldr-block {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ldr-block-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ldr-block-title i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

/* Location Badges Grid */
.ldr-locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.location-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-norm);
    text-align: center;
}

.location-badge:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-3px);
}

.location-badge i {
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.location-badge:first-child i {
    color: #fbbf24;
}

.location-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.location-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Brand Chips */
.brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-norm);
    cursor: default;
}

.brand-chip small {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.75rem;
}

.brand-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chip-asus {
    background: rgba(0, 150, 136, 0.12);
    border-color: rgba(0, 150, 136, 0.3);
    color: #4fd1c5;
}

.chip-hp {
    background: rgba(0, 150, 255, 0.1);
    border-color: rgba(0, 150, 255, 0.25);
    color: #63b3ed;
}

.chip-intel {
    background: rgba(0, 113, 197, 0.1);
    border-color: rgba(0, 113, 197, 0.25);
    color: #90cdf4;
}

.chip-amd {
    background: rgba(237, 28, 36, 0.1);
    border-color: rgba(237, 28, 36, 0.2);
    color: #fc8181;
}

.chip-hikvision {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: #feb2b2;
}

.chip-tplink {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.25);
    color: #a3d5ff;
}

/* Metric Items */
.ldr-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-norm);
}

.metric-item:hover {
    border-color: rgba(99, 102, 241, 0.15);
    background: rgba(99, 102, 241, 0.04);
}

.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.metric-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.metric-item p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    margin-top: 4rem;
}

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

/* --- Animations & Utilities --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

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

/* --- Performance: Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* --- GPU Hints for animated elements --- */
.blob, .hero-image-card, .skill-card, .project-card, .timeline-content,
.leadership-card, .location-badge, .brand-chip, .metric-item {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* =======================================
   RESPONSIVE BREAKPOINTS
   - 1200px: Large screens cleanup
   - 992px:  Tablet landscape / small laptop
   - 768px:  Tablet portrait
   - 480px:  Large phone / fold devices
   - 360px:  Small phones
   ======================================= */

/* --- Large screens cleanup (≤1200px) --- */
@media (max-width: 1200px) {
    .container { padding: 0 1.5rem; }
    .name { font-size: 4.5rem; }
    .hero-container { gap: 3rem; }
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

/* --- Tablet landscape / small laptop (≤992px) --- */
@media (max-width: 992px) {
    .name { font-size: 3.5rem; }
    .role { font-size: 1.8rem; height: auto; min-height: 2.5rem; }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-desc { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-image-wrapper { max-width: 400px; margin: 0 auto; order: -1; margin-bottom: 2rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { text-align: center; }
    .contact-details { align-items: center; }
    .social-links { justify-content: center; }

    /* Leadership */
    .ldr-locations-grid { grid-template-columns: repeat(2, 1fr); }
    .ldr-header { padding: 2rem; }
    .ldr-block { padding: 1.5rem 2rem; }
    .ldr-description { padding: 0 2rem 1.5rem; }

    /* Projects */
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

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

/* --- Tablet portrait (≤768px) --- */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .container { padding: 0 1.2rem; }

    /* Nav */
    .nav-container {
        width: 100%;
        border-radius: 0;
        padding: 0.8rem 1.2rem;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .nav-links { display: none; }
    .hamburger { display: block; }

    /* Hero */
    .hero-section { min-height: auto; padding-top: 100px; padding-bottom: 3rem; }
    .name { font-size: 2.8rem; }
    .role { font-size: 1.4rem; min-height: 2rem; }
    .greeting { font-size: 1rem; letter-spacing: 1.5px; }
    .hero-desc { font-size: 1rem; }
    .hero-image-wrapper { max-width: 300px; }
    .image-placeholder { font-size: 5rem; }

    /* About */
    .about-text { padding: 2rem; }
    .about-text p { font-size: 1rem; }
    .stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.8rem; }

    /* Experience */
    .timeline-role { font-size: 1.3rem; }
    .timeline-content { padding: 1.5rem; }
    .timeline-item { padding-left: 50px; margin-bottom: 2rem; }

    /* Leadership */
    .leadership-card { border-radius: 12px; }
    .ldr-header { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
    .ldr-icon-wrap { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 12px; }
    .ldr-title { font-size: 1.5rem; }
    .ldr-company { font-size: 1.05rem; }
    .ldr-block { padding: 1.2rem 1.5rem; }
    .ldr-description { padding: 0 1.5rem 1rem; }
    .ldr-description p { font-size: 0.95rem; }
    .ldr-locations-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .location-badge { padding: 0.8rem 0.4rem; }
    .location-name { font-size: 0.88rem; }
    .brand-chips { gap: 0.5rem; }
    .brand-chip { font-size: 0.8rem; padding: 0.45rem 0.85rem; }
    .metric-item { flex-direction: column; gap: 0.8rem; padding: 0.9rem 1rem; }
    .metric-item p { font-size: 0.9rem; }

    /* Contact */
    .contact-info { padding: 2rem; }
    .contact-info h3 { font-size: 1.5rem; }
    .contact-form { padding: 2rem; }

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .project-card:hover, .project-card.active:hover { transform: translateY(-5px) scale(1.01); }

    /* Skills */
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .skill-card:hover, .skill-card.active:hover { transform: translateY(-5px) scale(1.01); }

    /* Buttons - touch friendly */
    .btn { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
}

/* --- Large phone / Fold devices (≤480px) --- */
@media (max-width: 480px) {
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.7rem; margin-bottom: 1.8rem; }
    .container { padding: 0 1rem; }

    /* Hero */
    .hero-section { padding-top: 90px; }
    .name { font-size: 2.2rem; }
    .role { font-size: 1.15rem; min-height: 1.8rem; }
    .greeting { font-size: 0.9rem; }
    .hero-desc { font-size: 0.92rem; margin-bottom: 2rem; }
    .hero-image-wrapper { max-width: 220px; }
    .image-placeholder { font-size: 4rem; }
    .hero-actions { gap: 0.7rem; }
    .btn { padding: 0.7rem 1.3rem; font-size: 0.88rem; border-radius: 25px; }

    /* About */
    .about-text { padding: 1.5rem; }
    .about-text p { font-size: 0.93rem; margin-bottom: 1rem; }
    .stats { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.72rem; letter-spacing: 0.5px; }

    /* Experience */
    .timeline::before { left: 14px; }
    .timeline-dot { left: 5px; width: 18px; height: 18px; }
    .timeline-item { padding-left: 42px; }
    .timeline-role { font-size: 1.15rem; }
    .timeline-company { font-size: 1rem; }
    .timeline-content { padding: 1.2rem; }

    /* Leadership */
    .ldr-header { padding: 1.2rem; }
    .ldr-icon-wrap { width: 42px; height: 42px; font-size: 1.1rem; }
    .ldr-title { font-size: 1.3rem; }
    .ldr-company { font-size: 0.95rem; }
    .ldr-status-badge { font-size: 0.7rem; padding: 0.3rem 0.8rem; }
    .ldr-block { padding: 1rem 1.2rem; }
    .ldr-block-title { font-size: 0.78rem; letter-spacing: 1px; }
    .ldr-description { padding: 0 1.2rem 0.8rem; }
    .ldr-description p { font-size: 0.9rem; }
    .location-badge { padding: 0.7rem 0.3rem; border-radius: 10px; }
    .location-name { font-size: 0.82rem; }
    .location-sub { font-size: 0.68rem; }
    .brand-chip { font-size: 0.75rem; padding: 0.4rem 0.7rem; border-radius: 6px; }
    .brand-chip small { font-size: 0.65rem; }
    .metric-icon { width: 34px; height: 34px; font-size: 0.8rem; }
    .metric-item p { font-size: 0.88rem; }

    /* Contact */
    .contact-info { padding: 1.5rem; }
    .contact-info h3 { font-size: 1.3rem; }
    .contact-item { font-size: 0.95rem; }
    .contact-form { padding: 1.5rem; }
    .form-group input, .form-group textarea { padding: 0.85rem; font-size: 0.95rem; }

    /* Skills */
    .skills-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .skill-card { padding: 1.5rem 1rem; }
    .skill-icon { font-size: 2.2rem; margin-bottom: 1rem; }
    .skill-card h3 { font-size: 0.95rem; }

    /* Footer */
    .footer { padding: 1.5rem 1rem; }
    .footer p { font-size: 0.8rem; }

    /* Glassmorphism - softer borders on small screens */
    .glass { border-radius: 12px; }

    /* Nav */
    .nav-container { padding: 0.7rem 1rem; }
    .logo { font-size: 1.3rem; }
}

/* --- Small phones (≤360px) --- */
@media (max-width: 360px) {
    .container { padding: 0 0.8rem; }
    .name { font-size: 1.9rem; }
    .role { font-size: 1rem; }
    .greeting { font-size: 0.85rem; margin-bottom: 0.3rem; }
    .hero-desc { font-size: 0.88rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .hero-image-wrapper { max-width: 180px; }

    .stats { grid-template-columns: 1fr; gap: 1rem; }
    .stat-number { font-size: 1.8rem; }

    .ldr-locations-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .ldr-title { font-size: 1.15rem; }
    .brand-chip { font-size: 0.7rem; padding: 0.35rem 0.6rem; }

    .skills-grid { grid-template-columns: 1fr; }
    .contact-info h3 { font-size: 1.15rem; }

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

/* --- Landscape phone (short height) --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    .hero-image-wrapper { display: none; }
    .section { padding: 3rem 0; }
}

/* --- Fold devices specific (width 280-320px folded) --- */
@media (max-width: 320px) {
    .container { padding: 0 0.6rem; }
    .name { font-size: 1.7rem; }
    .role { font-size: 0.9rem; }
    .section-title { font-size: 1.35rem; }
    .about-text { padding: 1rem; }
    .ldr-header { padding: 1rem; }
    .ldr-block { padding: 0.8rem 1rem; }
    .ldr-description { padding: 0 1rem 0.6rem; }
    .ldr-locations-grid { grid-template-columns: 1fr; }
    .brand-chips { gap: 0.4rem; }
    .timeline-item { padding-left: 36px; }
    .timeline-content { padding: 1rem; }
    .timeline-role { font-size: 1rem; }
    .nav-container { padding: 0.5rem 0.8rem; }
}
