/* ========================================
   GÖKTUĞ YAMAK PORTFOLIO - Main Stylesheet
   ======================================== */

/* ----- CSS Variables & Theming ----- */
:root {
    /* Dark theme (default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #16161f;
    --bg-card: #1a1a26;
    --bg-card-hover: #1f1f2e;
    --text-primary: #e4e4ed;
    --text-secondary: #9d9db5;
    --text-muted: #6b6b80;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --border: #232336;
    --border-light: #2a2a40;
    --success: #00d68f;
    --warning: #ffaa00;
    --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-2: linear-gradient(135deg, #6c5ce7 0%, #00d68f 100%);
    --gradient-hero: radial-gradient(ellipse at top right, rgba(108, 92, 231, 0.15) 0%, transparent 60%),
                     radial-gradient(ellipse at bottom left, rgba(0, 214, 143, 0.08) 0%, transparent 60%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
    --max-width: 1200px;
    --nav-height: 70px;
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f8f8fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5ff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #7a7a9a;
    --accent: #5b4ae0;
    --accent-light: #7c6ef0;
    --accent-glow: rgba(91, 74, 224, 0.2);
    --border: #e0e0f0;
    --border-light: #e8e8f5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --gradient-hero: radial-gradient(ellipse at top right, rgba(91, 74, 224, 0.08) 0%, transparent 60%),
                     radial-gradient(ellipse at bottom left, rgba(0, 214, 143, 0.05) 0%, transparent 60%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: #fff;
}

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

ul { list-style: none; }

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ----- Navigation ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(248, 248, 252, 0.8);
}

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

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

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
    position: relative;
    z-index: 1001;
}

.nav-logo:hover {
    color: var(--accent-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1001;
}

/* Language Toggle */
.lang-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-light);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    min-width: 36px;
    text-align: center;
}

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

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition);
    position: relative;
    z-index: 1001;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: rotate(20deg);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(75vw, 400px);
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

/* Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

/* ----- Hero Section ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero-bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--max-width);
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.hero-name {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

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

.hero-typing-wrapper {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-weight: 500;
    min-height: 1.8em;
    display: flex;
    align-items: center;
}

.cursor {
    display: inline-block;
    font-weight: 300;
    color: var(--accent);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.5);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text-primary);
    background: transparent;
}

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

.btn-outline svg {
    flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-avatar-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.hero-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--gradient-2);
    animation: rotateRing 8s linear infinite;
    mask: radial-gradient(circle, transparent 62%, black 63%);
    -webkit-mask: radial-gradient(circle, transparent 62%, black 63%);
    filter: blur(2px);
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-initials {
    font-size: 6rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -4px;
}

/* Floating Badges */
.hero-floating-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    animation: float 4s ease-in-out infinite;
    white-space: nowrap;
    color: var(--text-primary);
}

.badge-1 { top: 5%; right: -10%; animation-delay: 0s; }
.badge-2 { bottom: 20%; right: -5%; animation-delay: 1.2s; }
.badge-3 { top: 30%; left: -15%; animation-delay: 2.4s; }
.badge-4 { bottom: 30%; left: -8%; animation-delay: 3.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.3; }
    100% { top: 6px; opacity: 1; }
}

/* ----- Sections Common ----- */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-number {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-left: 1rem;
}

/* ----- About Section ----- */
.about-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.text-highlight {
    color: var(--accent-light);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.25rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.stat-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Image */
.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-frame {
    width: 260px;
    height: 260px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.about-image-frame::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--accent);
    opacity: 0.3;
    z-index: -1;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.about-image-placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ----- Timeline (Experience) ----- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.35rem;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 4px var(--border);
    z-index: 1;
}

.section-alt .timeline-marker {
    border-color: var(--bg-secondary);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

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

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
}

.timeline-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-light);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-details li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.timeline-details li strong {
    color: var(--text-primary);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

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

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

.project-icon {
    color: var(--accent);
    opacity: 0.9;
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.project-tech span {
    background: var(--bg-tertiary);
    color: var(--accent-light);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font-mono);
    border: 1px solid var(--border);
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition);
}

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

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.skill-category-header svg {
    color: var(--accent);
    flex-shrink: 0;
}

.skill-category-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: grid;
    grid-template-columns: 140px 1fr 90px;
    align-items: center;
    gap: 1rem;
}

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

.skill-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.skill-level {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: right;
    font-family: var(--font-mono);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    background: var(--bg-tertiary);
    color: var(--accent-light);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all var(--transition);
    white-space: nowrap;
}

.skill-tags span:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ----- Certificates ----- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

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

.cert-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.cert-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cert-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ----- Education ----- */
.education-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition);
}

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

.edu-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 1px solid var(--border);
}

.edu-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.edu-school {
    display: block;
    font-size: 1rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.edu-gpa {
    color: var(--accent-light);
    font-weight: 600;
}

/* ----- Contact ----- */
.contact-content {
    max-width: 900px;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    transition: all var(--transition);
    overflow: hidden;
    min-width: 0;
}

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

.contact-card-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 0.25rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.contact-card:hover .contact-card-icon {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    overflow-wrap: anywhere;
    hyphens: auto;
    max-width: 100%;
}

/* ----- Contact Form ----- */
.contact-form-wrapper {
    margin-top: 3.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition);
}

.contact-form-wrapper:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-title::before {
    content: '✉️';
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Honeypot - invisible to humans, catches spam bots */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.required {
    color: #ff4757;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Validation states */
.form-group.error input,
.form-group.error textarea {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

.form-group.valid input,
.form-group.valid textarea {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(0, 214, 143, 0.15);
}

.form-error {
    font-size: 0.78rem;
    color: #ff4757;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.form-group.error .form-error {
    display: flex;
}

.form-char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    font-family: var(--font-mono);
    margin-top: 0.15rem;
}

.form-char-count.warning {
    color: var(--warning);
}

/* Submit Button */
.form-submit-btn {
    position: relative;
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    animation: spin 0.8s linear infinite;
}

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

/* Form Status Messages */
.form-status {
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

.form-status.success {
    background: rgba(0, 214, 143, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-status.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    color: #ff4757;
}

/* ----- Footer ----- */
.footer {
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ----- Animations ----- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ----- Responsive Design ----- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

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

    .hero-subtitle {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-visual {
        order: -1;
    }

    .hero-avatar-wrapper {
        width: 220px;
        height: 220px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-image {
        display: none;
    }

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

    .badge-1 { right: 0; }
    .badge-2 { right: 5%; }
    .badge-3 { left: 0; }
    .badge-4 { left: 5%; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .lang-toggle {
        margin-right: 0.25rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 1.25rem;
    }

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

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

    .certs-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

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

    .education-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.75rem;
    }

    .edu-meta {
        justify-content: center;
    }

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

    .timeline-content {
        padding: 1.5rem;
    }

    .skill-item {
        grid-template-columns: 100px 1fr 70px;
        gap: 0.5rem;
    }

    .hero-floating-badges {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-avatar-wrapper {
        width: 180px;
        height: 180px;
    }

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

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

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

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .certs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .skill-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.25rem;
    }

    .skill-level {
        text-align: center;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .section-number {
        display: none;
    }
}