/* ========================================
   MODERN BLACK & WHITE PORTFOLIO
   Super Animated Design System
   ======================================== */

/* CSS Variables */
:root {
    --pure-black: #000000;
    --off-black: #111111;
    --dark-gray: #222222;
    --medium-gray: #444444;
    --light-gray: #888888;
    --off-white: #f5f5f5;
    --pure-white: #ffffff;
    
    --bg-primary: var(--pure-white);
    --bg-secondary: var(--off-white);
    --bg-dark: var(--pure-black);
    --text-primary: var(--pure-black);
    --text-secondary: var(--medium-gray);
    --text-light: var(--light-gray);
    --text-inverse: var(--pure-white);
    
    --border-light: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.1);
    
    --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.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 0, 0, 0.3);
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   NAVIGATION - Glass Morphic & Animated
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 10000;
    transition: all var(--transition-slow);
    display: flex;
    align-items: center;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-slow);
}

.navbar:hover::before {
    left: 100%;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-logo {
    position: relative;
}

.nav-logo a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pure-black);
    letter-spacing: -0.03em;
    position: relative;
}

.nav-logo a::after {
    content: '.';
    color: var(--medium-gray);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 0;
    position: relative;
    transition: var(--transition-base);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pure-black);
    transition: width var(--transition-bounce);
}

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

.nav-link:hover {
    color: var(--pure-black);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
}

.nav-toggle .bar {
    width: 28px;
    height: 2px;
    background: var(--pure-black);
    transition: all var(--transition-base);
    transform-origin: center;
}

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

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

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

/* ========================================
   HERO SECTION - Dramatic & Bold
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pure-black);
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
    padding: 80px 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--pure-black) 0%, var(--dark-gray) 100%);
    animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* Animated grid background */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    color: var(--pure-white);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--pure-white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-bounce);
}

.hero-title:hover .highlight::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--light-gray);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    display: inline-block;
}

.hero-subtitle::before {
    content: '// ';
    color: var(--medium-gray);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-bounce);
}

.btn-primary {
    background: var(--pure-white);
    color: var(--pure-black);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--pure-black);
    transition: left var(--transition-smooth);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--pure-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: var(--pure-white);
    transition: left var(--transition-smooth);
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--pure-black);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary:hover::before {
    left: 0;
}

/* Hero Social */
.hero-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    font-size: 1.2rem;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--pure-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link:hover {
    color: var(--pure-black);
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--pure-white);
}

.social-link:hover::before {
    width: 300px;
    height: 300px;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

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

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 0;
    position: relative;
    background: var(--dark-gray);
    overflow: hidden;
}

.profile-img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--pure-white), transparent);
    animation: rotateBorder 4s linear infinite;
    opacity: 0.3;
}

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

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.profile-img:hover img {
    filter: grayscale(0%);
}

/* ========================================
   SECTION STYLES - Clean & Bold
   ======================================== */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--pure-black);
    position: relative;
    letter-spacing: -0.03em;
}

.section-title::before {
    content: attr(data-title);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--light-gray);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 10px;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--pure-black);
    margin: 0 auto 60px;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--pure-black);
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.section-divider::before {
    left: -5px;
}

.section-divider::after {
    right: -5px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-text p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin-right: 16px;
    margin-top: 8px;
    font-weight: 700;
    color: var(--pure-black);
}

.about-info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--pure-black);
    transition: all var(--transition-base);
}

.info-item:hover {
    transform: translateX(10px);
    background: var(--pure-black);
    color: var(--pure-white);
}

.info-label {
    font-weight: 600;
    min-width: 80px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.info-value {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-item:hover .info-value {
    color: rgba(255, 255, 255, 0.8);
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--pure-black);
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-bounce);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pure-white);
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
    z-index: 0;
}

.stat-item:hover::before {
    transform: translateY(0);
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.02);
}

.stat-item:hover .stat-number,
.stat-item:hover .stat-label {
    color: var(--pure-black);
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* ========================================
   EXPERIENCE SECTION - Timeline
   ======================================== */
.experience {
    background: var(--bg-secondary);
}

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

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pure-black);
    transform: translateX(-50%);
}

.experience-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.experience-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.experience-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.experience-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--pure-white);
    border: 3px solid var(--pure-black);
    top: 30px;
    transition: all var(--transition-bounce);
    z-index: 1;
}

.experience-item:nth-child(odd)::before {
    right: -10px;
}

.experience-item:nth-child(even)::before {
    left: -10px;
}

.experience-item:hover::before {
    background: var(--pure-black);
    transform: scale(1.3);
}

.experience-content {
    background: var(--pure-white);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
}

.experience-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 30px;
    height: 2px;
    background: var(--pure-black);
}

.experience-item:nth-child(odd) .experience-content::before {
    right: -30px;
}

.experience-item:nth-child(even) .experience-content::before {
    left: -30px;
}

.experience-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.experience-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--pure-black);
}

.experience-company {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.experience-period {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.experience-description {
    list-style: none;
    text-align: left;
}

.experience-description li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.experience-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--pure-black);
    font-weight: 700;
}

/* ========================================
   PROJECTS SECTION - Card Grid
   ======================================== */
.projects {
    background: var(--bg-primary);
}

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

.project-card {
    background: var(--pure-white);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--pure-black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-bounce);
    z-index: 10;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

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

.project-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    background: var(--dark-gray);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

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

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-content {
    padding: 30px;
    position: relative;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--pure-black);
    transition: color var(--transition-base);
}

.project-card:hover .project-title {
    color: var(--medium-gray);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tech-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.tech-tag:hover {
    background: var(--pure-black);
    color: var(--pure-white);
    border-color: var(--pure-black);
}

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

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pure-black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--pure-black);
    transition: width var(--transition-base);
}

.project-link:hover::after {
    width: 100%;
}

.project-link i {
    transition: transform var(--transition-base);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills {
    background: var(--pure-black);
    color: var(--pure-white);
}

.skills .section-title {
    color: var(--pure-white);
}

.skills .section-title::before {
    color: var(--medium-gray);
}

.skills .section-divider {
    background: var(--pure-white);
}

.skills .section-divider::before,
.skills .section-divider::after {
    background: var(--pure-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.skill-category {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-bounce);
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.skill-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
    color: var(--pure-white);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--pure-white);
    transform: scaleY(0);
    transition: transform var(--transition-bounce);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.skill-item:hover::before {
    transform: scaleY(1);
}

.skill-item i {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
    color: var(--pure-white);
    transition: transform var(--transition-base);
}

.skill-item:hover i {
    transform: scale(1.2);
}

.skill-item span {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--pure-black);
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--pure-white);
    border-left: 3px solid var(--pure-black);
    transition: all var(--transition-base);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pure-black);
    color: var(--pure-white);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.contact-item:hover i {
    background: var(--pure-white);
    color: var(--pure-black);
}

.contact-item span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-social {
    display: flex;
    gap: 16px;
}

.contact-social .social-link {
    width: 50px;
    height: 50px;
    background: var(--pure-black);
    border-color: var(--pure-black);
    color: var(--pure-white);
}

.contact-social .social-link:hover {
    background: var(--pure-white);
    color: var(--pure-black);
}

/* Contact Form */
.contact-form {
    background: var(--pure-white);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--pure-black);
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
    max-width: 400px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--pure-black);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 0;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pure-black);
    background: var(--pure-white);
    box-shadow: var(--shadow-sm);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-gray);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

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

.contact-form .btn {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 300px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--pure-black);
    color: var(--pure-white);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pure-white), transparent);
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.footer span {
    color: var(--pure-white);
    font-weight: 600;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--transition-slow);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all var(--transition-slow);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-slow);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-slow);
}

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

/* Staggered animation delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ========================================
   CURSOR EFFECT
   ======================================== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--pure-black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease;
    display: none;
}

@media (pointer: fine) {
    .cursor {
        display: block;
    }
}

.cursor.hovered {
    transform: scale(1.5);
    background: rgba(0, 0, 0, 0.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-container {
        gap: 60px;
    }
    
    .profile-img {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .experience-timeline::before {
        left: 20px;
    }
    
    .experience-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .experience-item::before {
        left: 10px !important;
        right: auto !important;
    }
    
    .experience-content::before {
        left: -30px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--pure-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-smooth);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 280px;
        height: 280px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 70px 15px;
    }
    
    .hero-container {
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 15px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .skill-category {
        padding: 25px 20px;
    }
    
    .skill-item {
        padding: 10px 12px;
    }
    
    .experience-content {
        padding: 20px 15px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    /* Ensure no horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .contact-content {
        gap: 40px;
    }
    
    .contact-item {
        padding: 12px 15px;
    }
    
    .contact-item i {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* ========================================
   NOTIFICATION STYLES
   ======================================== */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 20px 30px;
    background: var(--pure-black);
    color: var(--pure-white);
    font-weight: 500;
    z-index: 100000;
    transform: translateX(150%);
    transition: transform var(--transition-bounce);
    box-shadow: var(--shadow-xl);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--pure-white);
}

.notification-error {
    border-left: 4px solid #ff4444;
    background: #ff4444;
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pure-black);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

.loading-text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--pure-white);
    letter-spacing: 0.2em;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--pure-white);
    animation: loadingSlide 1.5s infinite;
}

@keyframes loadingSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hide loading screen when done */
.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
