/* style.css */

:root {
  --primary: #5dffff;
  --secondary: #7dd3fc;
  --bg-dark: #0a0e27;
  --text-main: #e0e6ff;
  --text-muted: #b0b8d4;
  --mobile-bg: #05081a; 
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* =========================================
   DEFAULT VISIBILITY (Desktop First)
   ========================================= */
#mobile-view {
    display: none;
}

#desktop-view {
    display: block;
    width: 100%;
    height: 100%;
}

/* =========================================
   DESKTOP STYLING (Standard)
   ========================================= */
#nav {
  position: fixed;
  top: 30px;
  left: 40px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 80px);
}

#nav h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
}

#nav h3 b {
  color: var(--primary);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

#character {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  z-index: 10;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  pointer-events: none;
}

.page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  padding: 100px 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.split-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 15;
}

.left-col, .right-col {
  width: 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-col { text-align: left; align-items: flex-start; }
.right-col { text-align: right; align-items: flex-end; }

.left-col h2, .right-col h2 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.1;
}

.left-col p, .right-col p {
    font-size: 18px;
    color: var(--text-main);
    line-height: 1.6;
}

.highlight {
    color: var(--secondary);
    font-weight: 700;
}

.hero-section {
  background: linear-gradient(135deg, #0a0e27 0%, #151b32 100%);
  justify-content: space-between;
}

.hero-content {
  position: relative;
  z-index: 15;
  width: 40%;
}

.hero-left { text-align: left; }
.hero-right { text-align: right; }

.hero-text-block h1 {
  font-size: 80px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0a0e27;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(93, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(93, 255, 255, 0.1);
  transform: translateY(-2px);
}

.small-btn { padding: 10px 20px; font-size: 12px; }

.skill-card, .project-card, .experience-item {
    background: rgba(93, 255, 255, 0.05);
    border: 1px solid rgba(93, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    width: 100%;
    transition: transform 0.3s ease;
}

.skill-card:hover, .project-card:hover, .experience-item:hover {
    transform: translateY(-5px);
    background: rgba(93, 255, 255, 0.1);
}

.left-col .skill-card, .left-col .project-card, .left-col .experience-item {
    text-align: left;
    border-left: 3px solid var(--primary);
}

.right-col .skill-card, .right-col .project-card, .right-col .experience-item {
    text-align: right;
    border-right: 3px solid var(--primary);
    border-left: none;
}

.card-title { color: var(--primary); font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.card-sub { color: var(--secondary); font-size: 13px; font-weight: 600; margin-bottom: 10px; display: block; }
.card-desc { color: var(--text-muted); font-size: 14px; }
.contact-link { font-size: 20px; color: var(--text-main); margin-bottom: 15px; display: block; text-decoration: none; transition: color 0.3s ease; }
.contact-link:hover { color: var(--primary); }
.social-buttons { display: flex; gap: 15px; justify-content: flex-end; margin: 20px 0; }
.location-text { font-size: 16px; color: var(--text-muted); margin-top: 10px; }


/* =========================================
   MOBILE / ANDROID SPECIFIC STYLES
   ========================================= */

@media (max-width: 900px) {
    
    /* 1. Toggle Views */
    #desktop-view {
        display: none !important;
    }
    
    #mobile-view {
        display: block;
        width: 100%;
        min-height: 100vh;
        background-color: var(--mobile-bg);
        position: relative;
    }

    /* 2. Mobile Nav - FIXED & ALIGNED */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 25px 20px;
        z-index: 100;
        display: flex;
        justify-content: space-between; /* Brand Left, Buttons Right */
        align-items: center;
        background: linear-gradient(to bottom, rgba(5,8,26,0.9), transparent);
    }

    .brand-name {
        color: #fff;
        font-weight: 300;
        font-size: 14px;
        letter-spacing: 1px;
    }
    .brand-name span { font-weight: 700; color: var(--secondary); }
    
    .mobile-nav-buttons { 
        display: flex; 
        gap: 15px; /* Clean gap between buttons */
    }

    .mobile-btn {
        background: rgba(93, 255, 255, 0.1);
        border: 1px solid rgba(93, 255, 255, 0.2);
        color: #fff;
        padding: 8px 16px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 12px;
        font-weight: 600;
        backdrop-filter: blur(5px);
        transition: background 0.3s;
    }
    .mobile-btn:hover { background: rgba(93, 255, 255, 0.2); }

    /* 3. SCROLLABLE CONTAINER (Z-Index 1: Background) */
    .mobile-scroll-container {
        position: relative;
        z-index: 1; /* Moves behind character */
        width: 100%;
    }

    .mobile-text-wrapper {
        padding: 0 20px;
        position: relative;
        text-align: center; /* CENTER ALIGNMENT FIXED */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Spacer to push text down initially */
    .mobile-top-spacer {
        height: 20vh;
        width: 100%;
    }

    /* Typography */
    .mobile-text-wrapper h1 {
        font-family: 'Impact', 'Arial Narrow', sans-serif;
        text-transform: uppercase;
        font-size: 52px;
        line-height: 0.9;
        margin: 0;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }

    .white-text { color: #fff; }
    .blue-text { color: var(--secondary); }
    .small-gap { margin-top: 15px !important; }

    /* Details */
    .mobile-details {
        margin-top: 30px;
        margin-bottom: 50px;
        max-width: 90%;
    }
    .mobile-details p {
        color: var(--text-muted);
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    .mobile-cta {
        display: inline-block;
        background: var(--secondary);
        color: #05081a;
        padding: 14px 40px;
        font-weight: 800;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 6px;
    }

    /* Projects */
    .mobile-projects {
        width: 100%;
        text-align: left; /* Keep project cards left aligned for readability */
        margin-bottom: 50px;
    }
    .mobile-projects h2 {
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 2px;
        margin-bottom: 20px;
        text-align: center;
    }
    .m-project-card {
        background: #151b32;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 15px;
        border-left: 3px solid var(--secondary);
    }
    .m-project-card h3 { color: #fff; font-size: 18px; margin-bottom: 5px; }
    .m-project-card p { color: var(--text-muted); font-size: 13px; }

    /* Footer / Contact */
    .mobile-footer {
        width: 100%;
        text-align: center;
        padding-top: 40px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .mobile-footer h2 { color: var(--text-muted); font-size: 14px; letter-spacing: 2px; margin-bottom: 20px; }
    .footer-link { display: block; color: #fff; margin-bottom: 10px; text-decoration: none; font-size: 16px; }
    
    .mobile-socials {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }
    .social-btn {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        color: var(--secondary);
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 14px;
    }
    .highlight-btn {
        background: var(--secondary);
        color: #000;
        font-weight: bold;
    }
    .location { color: #666; font-size: 12px; margin-top: 20px; }


    /* IMPORTANT: BOTTOM SPACER FOR FOOTER SCROLLING */
    .mobile-bottom-spacer {
        height: 70vh; /* Pushes the footer up past the character height */
        width: 100%;
    }

    /* 4. FIXED CHARACTER (Z-Index 2: Foreground) */
    .mobile-hero-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65vh; /* Fixed height for character */
        z-index: 50; /* Fixed on top */
        pointer-events: none;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    #character-mobile {
        width: 100%;
        height: 100%;
        display: block;
    }
    
    .mobile-gradient-crop {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40%;
        background: linear-gradient(to top, var(--mobile-bg) 10%, transparent 100%);
        z-index: 52;
    }
}