/* 
========================================
CSS VARIABLES & THEME DEFINITIONS 
========================================
*/
:root {
    --primary-bg: #090e17;
    --secondary-bg: #111a28;
    --accent-color: #ff9d00;
    --accent-color-hover: #e08900; 
    --text-main: #f0f4f8;         
    --text-muted: #94a3b8;        
    --tech-blue: #3b82f6;
    --gradient-accent: linear-gradient(135deg, #ff9d00, #3b82f6);
    --font-main: 'Poppins', sans-serif;
    --font-headers: 'Montserrat', sans-serif;
    --border-radius: 16px;
    --glass-bg: rgba(17, 26, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
========================================
CRITICAL FIX: Ensure content is visible before JS loads
========================================
*/

/* Show content immediately for users without JS or slow connections */
body {
    visibility: visible !important;
}

/* Override AOS hidden states - content starts visible then JS controls it */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Only hide AFTER AOS is initialized (class added by JS) */
body.aos-ready [data-aos] {
    opacity: 0 !important;
}

body.aos-ready [data-aos].aos-animate {
    opacity: 1 !important;
}

/* Hero content always visible immediately */
.hero-text, 
.hero-image-wrapper,
nav,
.section-header,
.hero-text h1,
.hero-text p,
.badge-tag,
.dynamic-role {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Ensure hero canvas doesn't block content */
#hero-canvas {
    opacity: 0.5;
}

/* 
========================================
CSS RESETS & GLOBAL 
========================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
    font-weight: 700;
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--transition-smooth);
}

ul {
    list-style-type: none;
}

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

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-main);
    display: inline-block;
    position: relative;
    padding: 0 15px;
}

.section-header h2::after {
    content: '';
    width: 50%;
    height: 4px;
    background: var(--gradient-accent);
    position: absolute;
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.5s var(--transition-smooth);
}

.section-header h2:hover::after {
    transform: scaleX(1);
}

/* 
========================================
SCROLL ANIMATIONS - CSS ONLY
========================================
*/

/* Initial state - hidden and positioned */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-zoom {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Visible state - animated in */
.fade-in-up.visible,
.fade-in-down.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-zoom.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delays for cards */
.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.2s; }
.stat-card:nth-child(3) { transition-delay: 0.3s; }
.stat-card:nth-child(4) { transition-delay: 0.4s; }

/* Timeline items staggered */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.3s; }
.timeline-item:nth-child(3) { transition-delay: 0.5s; }

/* Hero section faster animations */
.hero-text.fade-in-up {
    transition-delay: 0.2s;
    transition-duration: 1s;
}

.hero-image-wrapper.fade-in-right {
    transition-delay: 0.5s;
    transition-duration: 1.2s;
}

/* AOS library compatibility */
[data-aos] {
    transition-timing-function: var(--transition-smooth) !important;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(50px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* Reduced motion for mobile */
@media screen and (max-width: 768px) {
    [data-aos] {
        transition-duration: 600ms !important;
    }
    
    [data-aos="fade-up"],
    .fade-in-up {
        transform: translateY(30px);
    }
    
    [data-aos="fade-down"],
    .fade-in-down {
        transform: translateY(-30px);
    }
    
    [data-aos="fade-right"],
    .fade-in-right {
        transform: translateX(30px);
    }
    
    [data-aos="fade-left"],
    .fade-in-left {
        transform: translateX(-30px);
    }
}

@media screen and (max-width: 480px) {
    [data-aos] {
        transition-duration: 500ms !important;
    }
    
    [data-aos="fade-up"],
    .fade-in-up {
        transform: translateY(20px);
    }
    
    [data-aos="fade-down"],
    .fade-in-down {
        transform: translateY(-20px);
    }
    
    [data-aos="fade-right"],
    .fade-in-right {
        transform: translateX(20px);
    }
    
    [data-aos="fade-left"],
    .fade-in-left {
        transform: translateX(-20px);
    }
}

/* 
========================================
ANIMATION KEYFRAMES
========================================
*/
@keyframes floatImage {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 157, 0, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 157, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.4); }
}

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

@keyframes rotateFrame {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: -2px;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: normal;
    }
}

/* 
========================================
NAVIGATION STYLES
========================================
*/
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    transition: all 0.4s var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: transparent;
    border-bottom: 1px solid transparent;
    animation: slideInFromBottom 0.8s ease-out;
}

nav.scrolled {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: var(--font-headers);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -1px;
    position: relative;
    transition: transform 0.3s var(--transition-smooth);
    white-space: nowrap;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--accent-color);
}

.logo sup {
    color: var(--tech-blue);
    font-size: 0.7rem;
}

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

.nav-links li {
    opacity: 0;
    animation: slideInFromBottom 0.5s ease-out forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }
.nav-links li:nth-child(5) { animation-delay: 0.5s; }

.nav-links li a {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s var(--transition-smooth);
}

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

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--gradient-accent);
    bottom: 0;
    left: 0;
    transition: width 0.3s var(--transition-smooth);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    z-index: 1001;
    transition: transform 0.3s var(--transition-smooth);
    padding: 10px;
}

.mobile-menu-btn:hover {
    transform: rotate(90deg);
}

/* 
========================================
HERO SECTION
========================================
*/
#hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    padding: 80px 20px 40px;
    overflow: hidden;
    background: radial-gradient(circle at top right, #111a28 0%, #090e17 80%);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

/* Hero text animations */
.hero-text > * {
    animation: textReveal 0.8s ease-out forwards;
    opacity: 0;
}

.hero-text .badge-tag {
    animation-delay: 0.3s;
    animation: pulseGlow 3s infinite, textReveal 0.8s ease-out 0.3s forwards;
}

.hero-text h1 {
    animation-delay: 0.5s;
}

.hero-text .dynamic-role {
    animation-delay: 0.7s;
}

.hero-text p {
    animation-delay: 0.9s;
}

.hero-text .btn-group {
    animation-delay: 1.1s;
}

.badge-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    padding: 6px 12px;
    border-radius: 50px;
    color: var(--tech-blue);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseGlow 3s infinite;
    transition: transform 0.3s var(--transition-smooth);
}

.badge-tag:hover {
    transform: translateY(-2px);
}

.badge-tag i { 
    margin-right: 5px; 
}

.hero-text h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.2;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.hero-text h1 span.highlight-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: spinGradient 4s ease infinite;
}

.dynamic-role {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-family: var(--font-headers);
    color: var(--accent-color);
    margin-bottom: 20px;
    min-height: 40px; 
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: clamp(25px, 4vw, 35px);
    background-color: var(--tech-blue);
    margin-left: 5px;
    animation: blink 0.8s infinite;
}

.hero-text p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    font-family: var(--font-headers);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 0; 
    height: 100%;
    background: var(--tech-blue);
    z-index: -1;
    transition: all 0.4s var(--transition-smooth);
}

.btn:hover::before { 
    width: 100%; 
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 157, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover { 
    border-color: var(--tech-blue); 
}

.hero-image-wrapper {
    position: relative;
    width: clamp(200px, 40vw, 450px);
    height: clamp(200px, 40vw, 450px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatImage 6s ease-in-out infinite;
    flex-shrink: 0;
}

.rotating-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: var(--gradient-accent);
    animation: rotateFrame 15s linear infinite;
    filter: blur(10px);
    opacity: 0.6;
}

.image-container {
    position: relative;
    width: 92%;
    height: 92%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden;
    border: 4px solid var(--secondary-bg);
    background-color: var(--secondary-bg);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 0 20px 40px rgba(0,0,0,0.5);
    z-index: 2;
    transition: all 0.5s var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

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

/* 
========================================
ABOUT SECTION
========================================
*/
.section-padding {
    padding: 60px 20px;
}

#about {
    background-color: var(--primary-bg);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
    color: var(--tech-blue);
    transition: transform 0.3s var(--transition-smooth);
}

.about-content h3:hover {
    transform: translateX(10px);
}

.about-content p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
    border-color: var(--tech-blue);
}

.stat-card i {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--accent-color);
    margin-bottom: 10px;
    transition: transform 0.3s var(--transition-smooth);
}

.stat-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.stat-card h4 { 
    margin-bottom: 5px; 
    color: var(--text-main); 
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.stat-card span { 
    font-size: 0.8rem; 
    color: var(--text-muted); 
}

/* 
========================================
PROJECT SECTION
========================================
*/
#project {
    background-color: var(--secondary-bg);
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
    max-width: 1200px;
    margin: 0 auto;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 4px; 
    height: 100%;
    background: var(--gradient-accent);
    transition: width 0.3s var(--transition-smooth);
}

.project-card:hover::before {
    width: 6px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.proj-details h3 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.proj-details h3 i {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 157, 0, 0.8);
    animation: pulseGlow 3s infinite;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transition: all 0.3s var(--transition-smooth);
}

.tech-pill:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--tech-blue);
    transform: translateY(-2px);
}

.proj-desc {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.proj-mockup-wrapper {
    position: relative;
    border-radius: 10px;
    background: #1e293b;
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 20px 30px rgba(0,0,0,0.5);
    transition: transform 0.5s var(--transition-smooth);
    width: 100%;
}

.proj-mockup-wrapper:hover {
    transform: scale(1.02);
}

.browser-header {
    display: flex;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 10px;
}

.dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    transition: transform 0.3s var(--transition-smooth);
}

.dot:hover {
    transform: scale(1.3);
}

.dot-red { background: #ff5f56; }
.dot-yel { background: #ffbd2e; }
.dot-grn { background: #27c93f; }

.mockup-body {
    min-height: 250px;
    background: repeating-linear-gradient(45deg, rgba(59, 130, 246, 0.05) 0, rgba(59, 130, 246, 0.05) 10px, transparent 10px, transparent 20px);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.mockup-body i { 
    font-size: clamp(2.5rem, 8vw, 4rem); 
    color: var(--tech-blue); 
    margin-bottom: 15px;
    animation: floatImage 4s ease-in-out infinite;
}

.mockup-body h4 { 
    font-family: var(--font-headers); 
    letter-spacing: 2px;
    font-size: clamp(1rem, 3vw, 1.5rem);
}

.external-link {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s var(--transition-smooth);
    font-size: 0.9rem;
}

.external-link:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 157, 0, 0.3);
}

/* 
========================================
EXPERIENCE SECTION
========================================
*/
#experience {
    background: var(--primary-bg);
    position: relative;
}

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

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

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-icon {
    position: absolute;
    left: 3px;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--primary-bg);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(255,157,0,0.5);
    color: var(--text-main);
    z-index: 2;
    font-size: 0.8rem;
    transition: all 0.3s var(--transition-smooth);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,157,0,0.8);
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: var(--border-radius);
    position: relative;
    transition: all 0.4s var(--transition-smooth);
}

.timeline-content:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: var(--tech-blue);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 12px;
    left: -10px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent var(--glass-border) transparent transparent;
    transition: border-color 0.3s var(--transition-smooth);
}

.timeline-content:hover::before {
    border-color: transparent var(--tech-blue) transparent transparent;
}

.timeline-content h4 { 
    font-size: clamp(1.1rem, 2.5vw, 1.4rem); 
    color: var(--tech-blue); 
    margin-bottom: 5px; 
}

.timeline-content span.sub { 
    font-weight: 700; 
    color: var(--text-main); 
    margin-bottom: 10px; 
    display: block; 
    font-size: clamp(0.9rem, 2vw, 1.1rem); 
}

.timeline-content p { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    line-height: 1.6;
}

.tag-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    margin-top: 12px;
}

.t-badge { 
    background: #262626; 
    border: 1px solid #333; 
    padding: 3px 8px; 
    border-radius: 4px; 
    font-size: 0.75rem;
    transition: all 0.3s var(--transition-smooth);
}

.t-badge:hover {
    background: var(--tech-blue);
    border-color: var(--tech-blue);
    transform: translateY(-2px);
}

/* 
========================================
CONTACT SECTION
========================================
*/
#contact {
    background: var(--secondary-bg);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.4s var(--transition-smooth);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-block h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 10px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info-block p { 
    color: var(--text-muted); 
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s var(--transition-smooth);
}

.contact-method:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(5px);
}

.icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--tech-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--accent-color);
    transition: all 0.3s var(--transition-smooth);
    flex-shrink: 0;
}

.contact-method:hover .icon-circle { 
    background: var(--tech-blue); 
    color: var(--text-main);
    transform: rotate(360deg);
}

.method-text h5 { 
    color: var(--text-main); 
    font-size: 1rem; 
}

.method-text p { 
    margin-bottom: 0; 
    color: var(--text-muted); 
    font-size: 0.9rem;
    word-break: break-all;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form .flex-row {
    display: flex;
    gap: 15px;
}

.input-group {
    position: relative;
    flex: 1;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 14px;
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: all 0.3s var(--transition-smooth);
    outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent-color);
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 15px rgba(255, 157, 0, 0.1);
}

.contact-form textarea { 
    resize: vertical; 
    min-height: 120px; 
}

.btn-submit {
    background: var(--tech-blue);
    color: #fff;
    padding: 14px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.btn-submit:hover { 
    background: #2563eb; 
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-submit:active { 
    transform: translateY(0); 
}

/* 
========================================
FOOTER
========================================
*/
footer {
    background: #060910;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

footer h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 15px;
}

.footer-roles { 
    margin: 15px 0; 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: var(--text-main); 
    line-height: 1.8;
    padding: 0 10px;
}

.footer-roles span { 
    color: var(--accent-color); 
    padding: 0 8px; 
    opacity: 0.6; 
}

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 15px; 
    font-size: 0.8rem;
}

.heart { 
    color: red; 
    animation: blink 2s infinite;
}

/* 
========================================
RESPONSIVE MEDIA QUERIES 
========================================
*/

/* Tablet */
@media screen and (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    
    .hero-text p {
        text-align: center;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .dynamic-role {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-top: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .proj-mockup-wrapper {
        order: -1;
        margin-bottom: 20px;
    }
    
    .footer-roles span {
        display: none;
    }
    
    .footer-roles {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 250px; 
        height: 100vh;
        background: #0f172a; 
        flex-direction: column; 
        justify-content: center;
        align-items: center; 
        transition: right 0.5s var(--transition-smooth); 
        box-shadow: -10px 0 20px rgba(0,0,0,0.5);
        gap: 2rem;
    }
    
    .nav-links.active { 
        right: 0; 
    }
    
    .nav-links li {
        animation: none;
        opacity: 1;
    }
    
    .nav-links li a {
        font-size: 1rem;
    }
    
    #hero {
        padding: 70px 15px 30px;
    }
    
    .hero-content {
        margin-top: 0;
    }
    
    .hero-image-wrapper {
        width: 230px;
        height: 230px;
    }
    
    .section-padding {
        padding: 45px 15px;
    }
    
    .timeline-container::before {
        left: 18px;
    }
    
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline-icon {
        left: 1px;
        width: 32px;
        height: 32px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-content::before {
        left: -13px;
        border-width: 6px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .contact-container {
        padding: 20px;
    }
    
    .contact-form .flex-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .project-card {
        padding: 15px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    nav {
        padding: 0 15px;
        height: 55px;
    }
    
    #hero {
        padding: 65px 12px 25px;
    }
    
    .hero-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .badge-tag {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .section-padding {
        padding: 35px 12px;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-card i {
        font-size: 1.5rem;
    }
    
    .stat-card h4 {
        font-size: 0.9rem;
    }
    
    .stat-card span {
        font-size: 0.7rem;
    }
    
    .contact-method {
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo sup {
        font-size: 0.6rem;
    }
}

/* Prevent landscape issues on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 70px 20px 20px;
    }
    
    .hero-content {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .hero-image-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .dynamic-role {
        font-size: 1rem;
        min-height: 30px;
    }
}