/* ========================================
   ROOT VARIABLES & RESET
   ======================================== */
:root {
    --primary-color: #0ea5e9;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-darker: #0a0e27;
    --bg-card: rgba(15, 23, 42, 0.5);
    --bg-glass: rgba(15, 23, 42, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --glow-primary: 0 0 30px rgba(14, 165, 233, 0.4);
    --glow-secondary: 0 0 20px rgba(6, 182, 212, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   BACKGROUND EFFECTS
   ======================================== */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.glow-cursor {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    display: none;
}

/* ========================================
   UTILITIES & COMMON
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(14, 165, 233, 0.2);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 15, 40, 0.75);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 2000;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    width: min(600px, calc(100% - 40px));
    max-height: calc(100vh - 80px);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), var(--glow-primary);
    padding: 32px;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    position: relative;
    overflow: hidden;
}

.modal-overlay.is-open .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

.modal-dialog::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(99, 102, 241, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
    color: var(--text-primary);
    z-index: 2;
}

.modal-close:hover {
    transform: scale(1.05);
    background: rgba(14, 165, 233, 0.18);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
}

.modal-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
}

.modal-close span:first-child {
    transform: rotate(45deg);
}

.modal-close span:last-child {
    transform: rotate(-45deg);
}

.modal-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.modal-header h3 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

.modal-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-secondary);
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
    animation: fadeInUp 0.45s ease 0.1s both;
}

.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.3);
    border-radius: 999px;
}

.modal-body p {
    margin-bottom: 18px;
}

body.modal-open {
    overflow: hidden;
}

.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.logo-image {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    transition: var(--transition);
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.4));
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.badge-icon {
    font-size: 14px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.scroll-indicator p {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Hero Right - Projects Showcase & Character */
.hero-right {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-showcase {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.showcase-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.showcase-card:nth-child(1) { animation-delay: 0s; }
.showcase-card:nth-child(2) { animation-delay: 0.2s; }
.showcase-card:nth-child(3) { animation-delay: 0.4s; }
.showcase-card:nth-child(4) { animation-delay: 0.6s; }

.showcase-card:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.showcase-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.showcase-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 6px;
    color: var(--primary-color);
    transition: var(--transition);
}

.showcase-card:hover .card-arrow {
    background: rgba(14, 165, 233, 0.3);
    transform: translateX(4px);
}

/* Character Section */
.character-section {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character {
    position: relative;
    width: 200px;
    height: 300px;
    animation: float 4s ease-in-out infinite;
}

.character-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 3s ease-in-out infinite;
}

.character-body {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.character-head {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.5), inset 2px 2px 5px rgba(255, 255, 255, 0.1);
}

.character-head::before,
.character-head::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #0ea5e9;
    border-radius: 50%;
    top: 25px;
}

.character-head::before {
    left: 18px;
}

.character-head::after {
    right: 18px;
}

.character-torso {
    width: 100px;
    height: 120px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

.sl-badge {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.character-arms {
    position: absolute;
    top: 70px;
    left: -30px;
    width: 160px;
    height: 40px;
    display: flex;
    gap: 30px;
}

.character-arms::before,
.character-arms::after {
    content: '';
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    border-radius: 8px;
    box-shadow: inset -1px -1px 3px rgba(0, 0, 0, 0.5);
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    animation: float 4s ease-in-out infinite;
}

.float-icon:nth-child(1) {
    top: 20px;
    left: -60px;
    animation-delay: 0s;
}

.float-icon:nth-child(2) {
    top: 40%;
    right: -80px;
    animation-delay: 0.5s;
}

.float-icon:nth-child(3) {
    bottom: 40%;
    left: -100px;
    animation-delay: 1s;
}

.float-icon:nth-child(4) {
    bottom: 20px;
    right: -60px;
    animation-delay: 1.5s;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 120px 0;
    position: relative;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-founder {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.founder-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.founder-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.founder-info p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.founder-bio {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
}

.about-right {
    display: flex;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.stat-card {
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.stat-card:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   TECHNOLOGIES SECTION
   ======================================== */
.technologies {
    padding: 120px 0;
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.tech-card {
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tech-card:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
}

.tech-icon {
    font-size: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.tech-card:hover .tech-icon {
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.4));
}

.tech-card h4 {
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects {
    padding: 120px 0;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(14, 165, 233, 0.1) 100%);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(14, 165, 233, 0.3);
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-tags span {
    font-size: 12px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.project-buttons {
    display: flex;
    gap: 12px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 120px 0;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-left h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-left > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 12px 0;
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    color: var(--text-primary);
}

.form-border {
    height: 1px;
    background: var(--border-color);
    transition: var(--transition);
}

.form-group input:focus ~ .form-border,
.form-group textarea:focus ~ .form-border {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    height: 2px;
}

.contact-form .btn {
    margin-top: 12px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 14, 39, 0.5);
    margin-top: 120px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-left p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-secondary) !important;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(14, 165, 233, 0.2);
    box-shadow: var(--glow-primary);
    transform: translateY(-4px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 300px;
    }
    
    .nav-link {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-right {
        height: auto;
        min-height: 400px;
    }
    
    .projects-showcase {
        position: static;
        width: 100%;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .showcase-card {
        flex: 1;
        min-width: 140px;
    }
    
    .character-section {
        position: static;
        width: 100%;
        height: auto;
        transform: none;
    }
    
    .character {
        width: 150px;
        height: 200px;
    }
    
    .floating-icons {
        display: none;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Section Title */
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .about-text h3 {
        font-size: 22px;
    }
    
    .contact-left h2 {
        font-size: 28px;
    }
    
    .projects-showcase {
        flex-direction: column;
    }
    
    .showcase-card {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}
