/* 
   ████████╗███████╗██████╗  ██████╗██╗ ██████╗ 
   ╚══██╔══╝██╔════╝██╔══██╗██╔════╝██║██╔═══██╗
      ██║   █████╗  ██████╔╝██║     ██║██║   ██║
      ██║   ██╔══╝  ██╔══██╗██║     ██║██║   ██║
      ██║   ███████╗██║  ██║╚██████╗██║╚██████╔╝
      ╚═╝   ╚══════╝╚═╝  ╚═╝ ╚═════╝╚═╝ ╚═════╝ 
   
   CYBERPUNK TECH THEME - TERCIO SILVÉRIO PROFESSIONAL SITE
*/

:root {
    /* Matrix Color Palette */
    --primary-neon: #00ff41;
    --secondary-neon: #00ff41;
    --accent-neon: #00ff41;
    --warning-neon: #00ff41;
    --danger-neon: #ff0000;
    
    /* Dark Theme Colors */
    --bg-primary: #000000;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(13, 13, 13, 0.9);
    --bg-overlay: rgba(0, 0, 0, 0.95);
    
    /* Text Colors */
    --text-primary: #00ff41;
    --text-secondary: #00cc33;
    --text-accent: #00ff41;
    --text-muted: #006622;
    --text-white: #ffffff;
    --text-light: #f8f9fa;
    
    /* Code Colors */
    --code-bg: #000000;
    --code-border: #003300;
    --code-comment: #006622;
    --code-property: #00ff41;
    --code-string: #00cc33;
    --code-operator: #00ff41;
    --code-keyword: #00ff41;
    
    /* Effects */
    --glow-primary: 0 0 20px var(--primary-neon);
    --glow-secondary: 0 0 20px var(--secondary-neon);
    --glow-accent: 0 0 20px var(--accent-neon);
    --shadow-neon: 0 0 30px rgba(0, 255, 65, 0.4);
    --shadow-cyber: 0 10px 40px rgba(0, 0, 0, 0.9);
    
    /* Animation */
    --transition-cyber: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


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

::selection {
    background: var(--primary-neon);
    color: var(--bg-primary);
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
    padding-bottom: 50px;
}


/* Matrix scan lines effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.005) 2px,
        rgba(0, 255, 65, 0.005) 4px
    );
    pointer-events: none;
    z-index: -1;
    animation: scanLines 0.1s linear infinite;
}

@keyframes scanLines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border: 1px solid var(--code-border);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-neon), var(--primary-neon));
    border-radius: 6px;
    box-shadow: var(--glow-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--primary-neon), var(--accent-neon));
    box-shadow: var(--glow-primary);
}

/* Utility Classes */
.text-gradient {
    color: var(--text-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

.section-padding {
    padding: 120px 0;
    scroll-margin-top: 80px; /* Ensure sections don't hide behind fixed navbar */
}

/* Add scroll margin to all sections */
section {
    scroll-margin-top: 80px;
}

/* Navigation - Cyberpunk Style */
.custom-navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--code-border);
    transition: var(--transition-cyber);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.1);
}

.custom-navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 30px rgba(0, 255, 255, 0.2);
}

.navbar-brand {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-neon) !important;
    text-shadow: var(--glow-primary);
    position: relative;
}

.navbar-brand::before {
    content: '> ';
    color: var(--accent-neon);
    animation: blink 1.5s infinite;
}

.nav-link {
    font-family: var(--font-mono);
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: var(--transition-cyber);
    color: var(--text-secondary) !important;
    text-transform: lowercase;
}

.nav-link::before {
    content: './';
    color: var(--text-muted);
    transition: var(--transition-cyber);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-neon) !important;
    text-shadow: var(--glow-primary);
}

.nav-link:hover::before,
.nav-link.active::before {
    color: var(--accent-neon);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-neon), var(--accent-neon));
    transition: var(--transition-cyber);
    box-shadow: var(--glow-primary);
}

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

/* Hero Section - Terminal Style */
.hero-section {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, 
            rgba(10, 10, 10, 0.95) 0%, 
            rgba(17, 17, 17, 0.95) 50%, 
            rgba(10, 10, 10, 0.95) 100%
        ),
        url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.02"><circle cx="30" cy="30" r="1"/></g></svg>');
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Add space for fixed navbar */
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: var(--font-code);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.1;
}

.typing-text {
    color: var(--accent-neon);
    text-shadow: var(--glow-accent);
    font-weight: 300;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 20px;
    position: relative;
}

.code-bracket {
    color: var(--code-operator);
    font-weight: 600;
}

.typing-animation {
    color: var(--primary-neon);
    position: relative;
}

.cursor {
    color: var(--accent-neon);
    animation: blink 1s infinite;
    font-weight: 300;
}

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

/* Code Block Styling */
.code-block {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--shadow-cyber);
    max-width: 450px;
}

.code-header {
    background: rgba(48, 54, 61, 0.3);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--code-border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #28ca42; }

.code-filename {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: auto;
    font-family: var(--font-code);
}

.code-content {
    padding: 15px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.5;
}

.code-comment { color: var(--code-comment); }
.code-property { color: var(--code-property); }
.code-operator { color: var(--code-operator); }
.code-string { color: var(--code-string); }

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}


/* Cyberpunk Buttons */
.btn-cyber {
    background: transparent;
    border: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    font-family: var(--font-mono);
    font-weight: 500;
    padding: 10px 25px;
    position: relative;
    overflow: hidden;
    text-transform: lowercase;
    transition: var(--transition-cyber);
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

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

.btn-cyber:hover {
    color: var(--bg-primary);
    background: var(--primary-neon);
    box-shadow: var(--glow-primary);
    text-shadow: none;
}

.btn-cyber:hover::before {
    left: 100%;
}

.btn-cyber-outline {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-weight: 400;
    padding: 10px 25px;
    position: relative;
    overflow: hidden;
    text-transform: lowercase;
    transition: var(--transition-cyber);
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-cyber-outline:hover {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: transparent;
    border: 2px solid #25d366;
    color: #25d366;
    font-family: var(--font-mono);
    font-weight: 500;
    padding: 10px 18px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-cyber);
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    border-radius: 5px;
}

.btn-whatsapp:hover {
    background: #25d366;
    color: white;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    text-shadow: none;
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: radial-gradient(circle, var(--primary-neon) 0%, transparent 70%);
    transition: var(--transition-glow);
}

.btn-cyber:hover .btn-glow {
    opacity: 0.1;
}

/* Social Links - WhatsApp Style */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--code-border);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-cyber);
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    font-family: var(--font-mono);
}

.whatsapp-link {
    border-color: #25d366;
    color: #25d366;
}

.whatsapp-link:hover {
    background: #25d366;
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px);
}

.social-text {
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.social-text-small {
    margin-left: 8px;
    font-size: 0.8rem;
    font-weight: 400;
}


/* Hero Image */
.hero-image {
    text-align: center;
    position: relative;
}


/* Professional Profile Image - Matrix Style */
.profile-image {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 3px solid var(--primary-neon);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.4),
        inset 0 0 30px rgba(0, 255, 65, 0.1);
    object-fit: cover;
    transition: var(--transition-cyber);
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #001a00 50%, #000000 100%);
    position: relative;
    z-index: 2;
    filter: contrast(1.1) brightness(1.05);
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-neon);
    box-shadow: 
        0 0 40px rgba(0, 255, 65, 0.6),
        0 0 60px rgba(0, 255, 65, 0.4),
        inset 0 0 40px rgba(0, 255, 65, 0.15);
}

/* Profile image wrapper for additional effects */
.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 290px;
    height: 290px;
    background: 
        /* Centro da engrenagem */
        radial-gradient(circle at 50% 50%, var(--primary-neon) 25%, transparent 26%),
        /* Dentes da engrenagem - 8 dentes */
        conic-gradient(
            from 0deg,
            transparent 20deg,
            var(--primary-neon) 22.5deg,
            var(--primary-neon) 37.5deg,
            transparent 40deg,
            transparent 65deg,
            var(--primary-neon) 67.5deg,
            var(--primary-neon) 82.5deg,
            transparent 85deg,
            transparent 110deg,
            var(--primary-neon) 112.5deg,
            var(--primary-neon) 127.5deg,
            transparent 130deg,
            transparent 155deg,
            var(--primary-neon) 157.5deg,
            var(--primary-neon) 172.5deg,
            transparent 175deg,
            transparent 200deg,
            var(--primary-neon) 202.5deg,
            var(--primary-neon) 217.5deg,
            transparent 220deg,
            transparent 245deg,
            var(--primary-neon) 247.5deg,
            var(--primary-neon) 262.5deg,
            transparent 265deg,
            transparent 290deg,
            var(--primary-neon) 292.5deg,
            var(--primary-neon) 307.5deg,
            transparent 310deg,
            transparent 335deg,
            var(--primary-neon) 337.5deg,
            var(--primary-neon) 352.5deg,
            transparent 355deg
        );
    border-radius: 50%;
    animation: rotate 8s linear infinite;
    opacity: 0.3;
    z-index: 1;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.2),
        inset 0 0 30px rgba(0, 255, 65, 0.1);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: 
        /* Centro da engrenagem maior */
        radial-gradient(circle at 50% 50%, var(--primary-neon) 20%, transparent 21%),
        /* Dentes da engrenagem maior - 12 dentes */
        conic-gradient(
            from 0deg,
            transparent 12deg,
            var(--primary-neon) 15deg,
            var(--primary-neon) 25deg,
            transparent 28deg,
            transparent 42deg,
            var(--primary-neon) 45deg,
            var(--primary-neon) 55deg,
            transparent 58deg,
            transparent 72deg,
            var(--primary-neon) 75deg,
            var(--primary-neon) 85deg,
            transparent 88deg,
            transparent 102deg,
            var(--primary-neon) 105deg,
            var(--primary-neon) 115deg,
            transparent 118deg,
            transparent 132deg,
            var(--primary-neon) 135deg,
            var(--primary-neon) 145deg,
            transparent 148deg,
            transparent 162deg,
            var(--primary-neon) 165deg,
            var(--primary-neon) 175deg,
            transparent 178deg,
            transparent 192deg,
            var(--primary-neon) 195deg,
            var(--primary-neon) 205deg,
            transparent 208deg,
            transparent 222deg,
            var(--primary-neon) 225deg,
            var(--primary-neon) 235deg,
            transparent 238deg,
            transparent 252deg,
            var(--primary-neon) 255deg,
            var(--primary-neon) 265deg,
            transparent 268deg,
            transparent 282deg,
            var(--primary-neon) 285deg,
            var(--primary-neon) 295deg,
            transparent 298deg,
            transparent 312deg,
            var(--primary-neon) 315deg,
            var(--primary-neon) 325deg,
            transparent 328deg,
            transparent 342deg,
            var(--primary-neon) 345deg,
            var(--primary-neon) 355deg,
            transparent 358deg
        );
    border-radius: 50%;
    animation: rotateReverse 12s linear infinite;
    opacity: 0.2;
    z-index: 0;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.1),
        inset 0 0 20px rgba(0, 255, 65, 0.05);
}

/* Tech Overlay Effects */
.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.code-particle {
    position: absolute;
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--primary-neon);
    opacity: 0.6;
    animation: codeFloat 8s infinite linear;
    white-space: nowrap;
    text-shadow: 0 0 10px var(--primary-neon);
}

.code-particle:nth-child(1) {
    top: 15%;
    left: -20%;
    animation-delay: 0s;
}

.code-particle:nth-child(2) {
    top: 45%;
    left: -15%;
    animation-delay: 2s;
}

.code-particle:nth-child(3) {
    top: 65%;
    right: -20%;
    animation-delay: 4s;
}

.code-particle:nth-child(4) {
    top: 80%;
    left: 5%;
    animation-delay: 6s;
}

.code-particle:nth-child(5) {
    top: 35%;
    right: 10%;
    animation-delay: 8s;
}

@keyframes codeFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20px) rotate(360deg);
        opacity: 0;
    }
}

.image-placeholder {
    width: 320px;
    height: 320px;
    background: var(--code-bg);
    border: 2px solid var(--code-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: var(--transition-cyber);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--primary-neon) 90deg,
        transparent 180deg,
        var(--secondary-neon) 270deg,
        transparent 360deg
    );
    animation: rotate 4s linear infinite;
    opacity: 0.3;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--code-bg);
    z-index: 1;
}

.image-placeholder i,
.image-placeholder p {
    position: relative;
    z-index: 2;
}

.image-placeholder:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-neon);
    margin-bottom: 15px;
    text-shadow: var(--glow-primary);
}

.image-placeholder p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    margin: 0;
}

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

@keyframes rotateReverse {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Floating Matrix Effect */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    font-family: var(--font-code);
    color: var(--accent-neon);
    opacity: 0.1;
    animation: matrixRain 8s linear infinite;
    font-size: 14px;
}

.shape-1 {
    left: 10%;
    animation-delay: 0s;
}

.shape-1::before { content: '01001010'; }

.shape-2 {
    left: 30%;
    animation-delay: 2s;
}

.shape-2::before { content: '11010011'; }

.shape-3 {
    left: 50%;
    animation-delay: 4s;
}

.shape-3::before { content: '10110101'; }

.shape-4 {
    left: 70%;
    animation-delay: 6s;
}

.shape-4::before { content: '01101100'; }

.shape-5 {
    left: 90%;
    animation-delay: 1s;
}

.shape-5::before { content: '11001010'; }

@keyframes matrixRain {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Section Headers */
.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-title {
    font-family: var(--font-code);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-white);
}

.section-title::before {
    content: '// ';
    color: var(--code-comment);
    font-size: 1.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-neon), var(--accent-neon));
    transform: translateX(-50%);
    box-shadow: var(--glow-primary);
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle::before {
    content: '/* ';
    color: var(--code-comment);
}

.section-subtitle::after {
    content: ' */';
    color: var(--code-comment);
}

/* Dark sections */
.bg-light {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--code-border);
    border-bottom: 1px solid var(--code-border);
}

/* About Section */
.about-content {
    padding-right: 30px;
}

.about-title {
    font-family: var(--font-code);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.about-title::before {
    content: 'class ';
    color: var(--code-keyword);
}

.about-title::after {
    content: ' {';
    color: var(--code-operator);
}

.about-text {
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
}

.about-text::before {
    content: '//';
    position: absolute;
    left: 0;
    color: var(--code-comment);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-left: 20px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-neon);
    box-shadow: var(--glow-accent);
}

.stat-item h4 {
    font-family: var(--font-code);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-neon);
    text-shadow: var(--glow-primary);
    margin-bottom: 10px;
}

.stat-item p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: lowercase;
}

/* Skills Section */
.skills-section {
    padding-left: 30px;
}

.skills-title {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--secondary-neon);
    text-shadow: var(--glow-secondary);
}

.skills-title::before {
    content: 'skills: [';
    color: var(--code-operator);
}

.skills-title::after {
    content: '';
}

.skill-item {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--code-border);
    border-radius: 5px;
    transition: var(--transition-cyber);
}

.skill-item:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.skill-header span:first-child {
    color: var(--code-property);
}

.skill-header span:last-child {
    color: var(--code-string);
    font-weight: 600;
}

.skill-header span:first-child::before {
    content: '"';
    color: var(--code-operator);
}

.skill-header span:first-child::after {
    content: '":';
    color: var(--code-operator);
}

.skill-bar {
    height: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--code-border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-neon), var(--accent-neon));
    width: 0;
    transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* Timeline - Code Style */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-neon), var(--accent-neon));
    box-shadow: var(--glow-primary);
}

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

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-neon);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--code-border);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition-cyber);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 12px 10px 0;
    border-color: transparent var(--code-border) transparent transparent;
}

.timeline-content::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 21px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 11px 9px 0;
    border-color: transparent var(--bg-card) transparent transparent;
}

.timeline-content:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateX(10px);
}

.timeline-content h4 {
    font-family: var(--font-code);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary-neon);
}

.timeline-content h4::before {
    content: 'function ';
    color: var(--code-keyword);
    font-size: 1rem;
}

.timeline-content h4::after {
    content: '() {';
    color: var(--code-operator);
    font-size: 1rem;
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary-neon), var(--danger-neon));
    color: var(--bg-primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-family: var(--font-mono);
    padding-left: 20px;
}

.timeline-content p::before {
    content: '// ';
    color: var(--code-comment);
    position: absolute;
    left: 30px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    padding-left: 20px;
}

.timeline-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.timeline-content li::before {
    content: '> ';
    position: absolute;
    left: 0;
    color: var(--accent-neon);
    font-weight: 600;
}

/* Portfolio - Cyberpunk Cards */
.portfolio-item {
    background: var(--bg-card);
    border: 1px solid var(--code-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-cyber);
    height: 100%;
    position: relative;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon), var(--accent-neon));
    transform: scaleX(0);
    transition: var(--transition-cyber);
}

.portfolio-item:hover::before {
    transform: scaleX(1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-neon);
    box-shadow: var(--shadow-neon);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--code-bg);
}

.portfolio-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary), var(--code-bg));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-neon);
    margin: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.portfolio-image .image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: var(--transition-cyber);
}

.portfolio-item:hover .portfolio-image .image-placeholder::before {
    left: 100%;
}

.portfolio-image .image-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: var(--glow-primary);
}

.portfolio-image .image-placeholder p {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    text-transform: lowercase;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h4 {
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--primary-neon);
}

.portfolio-content h4::before {
    content: 'project: "';
    color: var(--code-property);
    font-size: 0.9rem;
}

.portfolio-content h4::after {
    content: '"';
    color: var(--code-property);
    font-size: 0.9rem;
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: transparent;
    color: var(--code-string);
    border: 1px solid var(--code-border);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-cyber);
    font-family: var(--font-mono);
    position: relative;
}

.tag::before {
    content: '#';
    color: var(--code-comment);
}

.tag:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Portfolio Categories */
.category-title {
    color: var(--primary-neon);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    position: relative;
    margin-bottom: 30px !important;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.category-title i {
    color: var(--accent-neon);
}

/* Contact Section - Terminal Style */
#contact {
    background: var(--bg-primary) !important;
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
}

#contact .section-title::after {
    display: none;
}

#portfolio .section-title::after {
    display: none !important;
}

.contact-form {
    background: var(--code-bg);
    border: 2px solid var(--code-border);
    padding: 40px;
    border-radius: 8px;
    position: relative;
}

.contact-form::before {
    content: 'terminal@tercio:~/contact$';
    position: absolute;
    top: -25px;
    left: 20px;
    background: var(--code-bg);
    color: var(--accent-neon);
    padding: 5px 15px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    border: 1px solid var(--code-border);
    border-bottom: none;
}

.contact-form .form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--code-border);
    border-radius: 5px;
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-cyber);
}

.contact-form .form-control:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-neon);
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 255, 0.1);
    color: var(--text-primary);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.contact-form .btn {
    background: transparent;
    border: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    font-family: var(--font-code);
    font-weight: 500;
    padding: 12px 30px;
    text-transform: lowercase;
    transition: var(--transition-cyber);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.contact-form .btn::before {
    content: './send --message ';
    font-size: 0.9rem;
}

.contact-form .btn:hover {
    background: var(--primary-neon);
    color: var(--bg-primary);
    box-shadow: var(--glow-primary);
}

.contact-info {
    text-align: center;
    padding: 20px;
}

.contact-info i {
    color: var(--primary-neon);
    margin-bottom: 15px;
    text-shadow: var(--glow-primary);
}

.contact-info h5 {
    font-family: var(--font-code);
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-info h5::before {
    content: 'const ';
    color: var(--code-keyword);
    font-size: 0.8rem;
}

.contact-info h5::after {
    content: ' = ';
    color: var(--code-operator);
    font-size: 0.8rem;
}

.contact-info p {
    color: var(--code-string);
    margin: 0;
    font-family: var(--font-mono);
}

.contact-info p::before {
    content: '"';
    color: var(--code-operator);
}

.contact-info p::after {
    content: '";';
    color: var(--code-operator);
}

/* Footer */
footer {
    background: var(--bg-primary) !important;
    border-top: 1px solid var(--code-border);
    padding: 12px 0 !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
}

footer .container {
    height: 100%;
    display: flex;
    align-items: center;
}

footer .row {
    width: 100%;
    margin: 0;
}

footer p {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.2;
}

footer .social-link {
    padding: 2px 6px !important;
    font-size: 0.85rem !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: inline !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

footer .social-link:hover {
    color: #25d366 !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

footer .social-link i {
    font-size: 0.9rem;
    margin-right: 4px;
}

footer p::before {
    content: '// ';
    color: var(--code-comment);
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin: 0 5px;
}

/* Back to Top Button */
#backToTop {
    background: transparent !important;
    border: 2px solid var(--primary-neon) !important;
    color: var(--primary-neon) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 0 !important;
    font-family: var(--font-code);
    transition: var(--transition-cyber) !important;
}

#backToTop:hover {
    background: var(--primary-neon) !important;
    color: var(--bg-primary) !important;
    box-shadow: var(--glow-primary) !important;
    transform: translateY(-5px) !important;
}

/* Enhanced Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-padding {
        padding: 100px 0;
    }
    
    .image-placeholder {
        width: 280px;
        height: 280px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content,
    .skills-section {
        padding: 0;
        margin-bottom: 50px;
    }
    
    .about-stats {
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .timeline {
        padding-left: 35px;
    }
    
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline-marker {
        left: -42px;
    }
    
    .image-placeholder {
        width: 260px;
        height: 260px;
    }
    
    .code-block {
        max-width: 100%;
        margin: 20px 0;
    }
    
    .code-content {
        font-size: 0.85rem;
        padding: 15px;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    body {
        padding-bottom: 45px;
    }
    
    .hero-section {
        min-height: 90vh;
        padding: 100px 0 20px 0; /* Increase top padding for navbar */
    }
    
    .hero-title {
        font-size: 2.5rem; /* Increased from 2rem */
        line-height: 1.1;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem; /* Increased from 1rem */
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 2.2rem; /* Increased from 1.8rem */
    }
    
    .section-subtitle {
        font-size: 1.2rem; /* Increased from 1rem */
    }
    
    .section-padding {
        padding: 80px 0; /* Increased from 70px */
    }
    
    /* Navigation improvements */
    .custom-navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .nav-link {
        margin: 5px 0;
        padding: 8px 15px;
        border-bottom: 1px solid var(--code-border);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hero section mobile */
    .hero-content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .code-block {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .code-header {
        padding: 12px 15px;
        font-size: 0.9rem; /* Increased from 0.8rem */
    }
    
    .code-content {
        padding: 18px;
        font-size: 1rem; /* Increased from 0.8rem */
        line-height: 1.5;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 25px;
        margin-left: 0 !important;
        justify-content: center !important;
    }
    
    .hero-buttons .btn {
        margin: 0;
        width: 100%;
        max-width: 300px;
        display: inline-block;
        padding: 16px 28px;
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-social {
        justify-content: center;
        margin-top: 25px;
    }
    
    .social-link {
        padding: 10px 16px;
        font-size: 1rem;
    }
    
    .social-text {
        font-size: 0.85rem;
    }
    
    /* About section mobile */
    .about-content {
        padding: 0;
        margin-bottom: 40px;
    }
    
    .about-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .about-text {
        font-size: 1.1rem; /* Increased from 0.95rem */
        padding-left: 15px;
        margin-bottom: 18px;
    }
    
    .about-stats {
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
        padding-left: 0;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .stat-item h4 {
        font-size: 2.2rem;
    }
    
    .stat-item p {
        font-size: 1rem; /* Increased from 0.85rem */
    }
    
    /* Skills section mobile */
    .skills-section {
        padding: 0;
        margin-bottom: 40px;
    }
    
    .skills-title {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .skill-item {
        margin-bottom: 20px;
        padding: 12px;
    }
    
    .skill-header {
        font-size: 1.05rem; /* Increased from 0.9rem */
    }
    
    /* Timeline mobile */
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-item {
        padding-left: 35px;
        margin-bottom: 35px;
    }
    
    .timeline-marker {
        left: -33px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 20px 15px;
    }
    
    .timeline-content h4 {
        font-size: 1.3rem; /* Increased from 1.1rem */
    }
    
    .timeline-content p {
        font-size: 1.05rem; /* Increased from 0.9rem */
        padding-left: 15px;
    }
    
    .timeline-content li {
        font-size: 1rem; /* Increased from 0.85rem */
        padding-left: 25px;
    }
    
    /* Portfolio mobile */
    .portfolio-item {
        margin-bottom: 25px;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 20px 15px;
    }
    
    .portfolio-content h4 {
        font-size: 1.3rem; /* Increased from 1.1rem */
    }
    
    .portfolio-content p {
        font-size: 1.05rem; /* Increased from 0.9rem */
    }
    
    .tag {
        font-size: 0.9rem; /* Increased from 0.75rem */
        padding: 6px 12px; /* Increased padding */
    }
    
    /* Contact mobile */
    .contact-form {
        padding: 25px 15px;
        margin: 0 -15px;
    }
    
    .contact-form::before {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .contact-form .form-control {
        padding: 14px;
        font-size: 1.1rem; /* Increased from 0.95rem */
    }
    
    .contact-form .btn {
        padding: 14px 32px;
        font-size: 1.1rem; /* Increased from 0.9rem */
    }
    
    .contact-info {
        padding: 15px 10px;
    }
    
    .contact-info i {
        font-size: 1.8rem;
    }
    
    .contact-info h5 {
        font-size: 1rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    /* Footer mobile */
    footer {
        padding: 10px 0 !important;
        height: 45px;
    }
    
    footer p {
        font-size: 0.8rem;
        text-align: center;
        margin: 0;
        line-height: 1.1;
    }
    
    footer .social-link {
        font-size: 0.8rem !important;
        padding: 1px 4px !important;
    }
    
    footer .social-link i {
        font-size: 0.85rem;
        margin-right: 3px;
    }
    
    /* Image placeholder mobile */
    .image-placeholder {
        width: 220px !important;
        height: 220px !important;
        margin: 20px auto;
    }

    /* Profile image mobile */
    .profile-image {
        width: 220px;
        height: 220px;
    }

    .hero-image::before {
        width: 240px;
        height: 240px;
    }

    .hero-image::after {
        width: 260px;
        height: 260px;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
    
    .image-placeholder p {
        font-size: 0.8rem;
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    body {
        padding-bottom: 40px;
    }
    
    .hero-buttons {
        margin-left: 0 !important;
        justify-content: center !important;
    }
    
    footer .social-link {
        font-size: 0.75rem !important;
        padding: 1px 3px !important;
    }
    
    footer .social-link i {
        font-size: 0.8rem;
        margin-right: 2px;
    }
    
    .section-padding {
        padding: 70px 0; /* Increased from 60px */
    }
    
    .hero-section {
        min-height: 85vh;
        padding-top: 100px; /* Ensure navbar clearance */
    }
    
    .hero-title {
        font-size: 2rem; /* Increased from 1.6rem */
        line-height: 1.2;
    }
    
    .typing-text {
        display: block;
        margin-bottom: 10px;
        font-size: 1.1rem; /* Increased from 0.9rem */
    }
    
    .hero-subtitle {
        font-size: 1.1rem; /* Increased from 0.9rem */
    }
    
    .section-title {
        font-size: 1.9rem; /* Increased from 1.6rem */
    }
    
    .section-title::before {
        font-size: 1.4rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Code block extra small */
    .code-header {
        padding: 8px 12px;
        flex-wrap: wrap;
    }
    
    .code-filename {
        font-size: 0.75rem;
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }
    
    .code-content {
        padding: 15px;
        font-size: 0.95rem; /* Increased from 0.75rem */
    }
    
    /* Buttons extra small */
    .hero-buttons .btn {
        padding: 14px 22px;
        font-size: 1rem;
        max-width: 280px;
        width: 100%;
        text-align: center;
    }
    
    .btn-text {
        font-size: 0.95rem; /* Increased from 0.8rem */
    }
    
    /* Stats extra small */
    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
    
    /* Skills extra small */
    .skill-item {
        padding: 10px;
    }
    
    .skill-header {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    /* Timeline extra small */
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -28px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-content {
        padding: 15px 12px;
    }
    
    .timeline-content h4 {
        font-size: 1.2rem; /* Increased from 1rem */
    }
    
    .timeline-date {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    /* Contact extra small */
    .contact-form {
        padding: 20px 12px;
    }
    
    .contact-form .form-control {
        padding: 12px;
        font-size: 1.05rem; /* Increased from 0.9rem */
    }
    
    .contact-info {
        padding: 12px 8px;
    }
    
    /* Portfolio extra small */
    .portfolio-image {
        height: 160px;
    }
    
    .portfolio-content {
        padding: 15px 12px;
    }
    
    .portfolio-content h4 {
        font-size: 1.2rem; /* Increased from 1rem */
    }
    
    .portfolio-content p {
        font-size: 1rem; /* Increased from 0.85rem */
    }
    
    .tag {
        font-size: 0.85rem; /* Increased from 0.7rem */
        padding: 5px 10px; /* Increased padding */
    }
    
    /* Image extra small */
    .image-placeholder {
        width: 200px !important;
        height: 200px !important;
    }

    /* Profile image extra small */
    .profile-image {
        width: 200px;
        height: 200px;
    }

    .hero-image::before {
        width: 220px;
        height: 220px;
    }

    .hero-image::after {
        width: 240px;
        height: 240px;
    }
    
    .image-placeholder i {
        font-size: 2.5rem;
    }
    
    /* Social links extra small */
    .social-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .social-text {
        font-size: 0.8rem;
        margin-left: 6px;
    }
    
    .footer-social .social-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .social-text-small {
        font-size: 0.7rem;
        margin-left: 4px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.7rem; /* Increased from 1.4rem */
    }
    
    .section-title {
        font-size: 1.7rem; /* Increased from 1.4rem */
    }
    
    .code-content {
        font-size: 0.9rem; /* Increased from 0.7rem */
    }
    
    .hero-buttons .btn {
        font-size: 0.95rem;
        padding: 12px 18px;
        width: 100%;
        text-align: center;
    }
    
    .image-placeholder {
        width: 180px !important;
        height: 180px !important;
    }

    /* Profile image very small */
    .profile-image {
        width: 180px;
        height: 180px;
    }

    .hero-image::before {
        width: 200px;
        height: 200px;
    }

    .hero-image::after {
        width: 220px;
        height: 220px;
    }
    
    .about-stats {
        gap: 15px;
    }
    
    .stat-item h4 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 15px 10px;
    }
    
    .timeline-content {
        padding: 12px 10px;
    }
    
    .portfolio-content {
        padding: 12px 10px;
    }
}

/* Desktop margin adjustment - MUST be at the end to override mobile rules */
@media (min-width: 992px) {
    .hero-buttons {
        margin-left: 10px !important;
        justify-content: flex-start !important;
        flex-direction: row !important;
    }
}

/* iPhone 12/13/14 Pro specific adjustment - 390x844 */
@media (max-width: 390px) and (max-height: 844px) {
    .hero-buttons {
        margin-left: 20px !important;
        justify-content: flex-start !important;
    }
    
    .hero-buttons .btn-cyber-outline {
        margin-left: -20px !important;
    }
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-family: var(--font-code);
    color: var(--primary-neon);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: var(--glow-primary);
}

.loading-text::before {
    content: 'Loading';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: 'Loading'; }
    25% { content: 'Loading.'; }
    50% { content: 'Loading..'; }
    75% { content: 'Loading...'; }
    100% { content: 'Loading'; }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--code-border);
    border-top: 3px solid var(--primary-neon);
    border-radius: 0;
    animation: spin 1s linear infinite;
    box-shadow: var(--glow-primary);
}

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

/* Custom Animations */
.glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Console Log Styling */
.console-log {
    font-family: var(--font-code);
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    color: var(--text-secondary);
    overflow-x: auto;
}

.console-log::before {
    content: 'console.log(';
    color: var(--code-property);
}

.console-log::after {
    content: ');';
    color: var(--code-property);
}

/* Notification Styles */
.notification {
    background: var(--code-bg) !important;
    border: 1px solid var(--code-border) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-mono);
    box-shadow: var(--shadow-cyber) !important;
}

.notification-success {
    border-left: 4px solid var(--accent-neon) !important;
}

.notification::before {
    content: '> ';
    color: var(--accent-neon);
    font-weight: bold;
}

/* Enhanced binary matrix floating shapes */
.shape-1::before { content: '01010101010101010101'; }
.shape-2::before { content: '11001100110011001100'; }
.shape-3::before { content: '10101010101010101010'; }
.shape-4::before { content: '00110011001100110011'; }
.shape-5::before { content: '11111111000000001111'; }
.shape-6::before { content: '00000000111111110000'; }
.shape-7::before { content: '10011001100110011001'; }
.shape-8::before { content: '01100110011001100110'; }
.shape-9::before { content: '11110000111100001111'; }
.shape-10::before { content: '0000111100001111000'; }

/* Binary stream effect for floating shapes */
.shape {
    font-family: var(--font-code);
    color: var(--accent-neon);
    opacity: 0.06;
    animation: binaryRain 12s linear infinite;
    font-size: 12px;
    text-shadow: 0 0 5px var(--accent-neon);
    letter-spacing: 1px;
}

.shape-6 { left: 15%; animation-delay: 3s; }
.shape-7 { left: 85%; animation-delay: 5s; }
.shape-8 { left: 25%; animation-delay: 7s; }
.shape-9 { left: 65%; animation-delay: 1.5s; }
.shape-10 { left: 75%; animation-delay: 3.5s; }

@keyframes binaryRain {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.06;
    }
    95% {
        opacity: 0.06;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Touch device optimizations */
.touch-device .portfolio-item:hover,
.touch-device .timeline-content:hover,
.touch-device .skill-item:hover {
    transform: none;
}

.touch-device .portfolio-item.touch-hover,
.touch-device .timeline-content.touch-hover,
.touch-device .skill-item.touch-hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.touch-device .social-link:hover {
    transform: none;
}

.touch-device .btn-cyber:hover::before {
    left: 0;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .matrix-bg,
    .floating-shapes,
    .hero-animation {
        display: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-neon: #ffffff;
        --secondary-neon: #ffffff;
        --accent-neon: #ffffff;
        --text-secondary: #ffffff;
        --code-border: #ffffff;
    }
}

/* Print styles */
@media print {
    .hero-animation,
    .floating-shapes,
    #matrix-bg,
    .loading,
    .btn-glow,
    .social-link::before {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section-title,
    .hero-title,
    .about-title {
        color: black !important;
        text-shadow: none !important;
    }
    
    .timeline-content,
    .portfolio-item,
    .skill-item {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}