/* ===== IMPORT MODERN FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #00f5ff;
    --secondary-color: #0066ff;
    --accent-color: #ff0080;
    --accent-secondary: #ff6b00;
    --bg-dark: #000000;
    --bg-dark-alt: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.8);
    --text-light: #ffffff;
    --text-muted: #a0a0b0;
    --text-dark: #333333;
    --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #0066ff 50%, #ff0080 100%);
    --gradient-accent: linear-gradient(135deg, #ff0080 0%, #ff6b00 100%);
    --gradient-bg: linear-gradient(135deg, #000000 0%, #0a0a14 50%, #000000 100%);
    --shadow-glow: 0 0 30px rgba(0, 245, 255, 0.3);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 30px 60px rgba(0, 245, 255, 0.2);
    --border-radius: 16px;
    --transition: all 0.2s ease-out; /* Faster transitions for responsiveness */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Performance optimizations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimize animations for performance */
*,
*::before,
*::after {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Hardware acceleration for smooth animations */
.btn,
.skill-card,
.project-card,
.contact-item,
.tech-icon {
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: #050505;
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* ===== GLOBAL PARTICLE OVERLAY ===== */
body::before {
    content: none;
}

body::after {
    content: none;
}

/* Mobile optimizations - even more conservative */
@media (max-width: 768px) {
    body::before {
        content: none;
    }
    
    body::after {
        content: none;
    }
}

/* Disable particles on very small screens */
@media (max-width: 480px) {
    body::before {
        content: none;
    }
    
    body::after {
        content: none;
    }
}

/* ===== ANIMATED BACKGROUND PARTICLES ===== */
.particles-bg {
    display: none;
}

.particles-bg::before {
    content: none;
}

.particles-bg::after {
    content: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
}

.text-accent {
    color: var(--accent-color);
    font-weight: 600;
    font-family: var(--font-mono);
    text-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 4rem;
    position: relative;
    text-align: center;
    font-weight: 900;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(10, 10, 15, 0.90);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    transition: var(--transition);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: var(--transition);
    position: relative;
    font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.8);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2); /* Almost transparent */
    backdrop-filter: blur(0.5px);
    overflow: hidden;
    padding-top: 80px;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-right: 0;
    padding-left: 2rem;
}

/* ===== PROFILE IMAGE SECTION ===== */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.profile-image-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 420px;
    height: 420px;
    border-radius: 20px;
    object-fit: cover;
    border: 6px solid transparent;
    background: var(--gradient-primary);
    padding: 6px;
    box-shadow: 
        0 0 80px rgba(0, 245, 255, 0.4),
        0 0 160px rgba(255, 0, 128, 0.3),
        inset 0 0 50px rgba(0, 245, 255, 0.1);
    animation: profileGlow 4s ease-in-out infinite alternate;
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 100px rgba(0, 245, 255, 0.6),
        0 0 200px rgba(255, 0, 128, 0.4),
        inset 0 0 60px rgba(0, 245, 255, 0.2);
}

@keyframes profileGlow {
    0% {
        box-shadow: 
            0 0 60px rgba(0, 245, 255, 0.4),
            0 0 120px rgba(255, 0, 128, 0.3),
            inset 0 0 40px rgba(0, 245, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 0 100px rgba(0, 245, 255, 0.6),
            0 0 180px rgba(255, 0, 128, 0.4),
            inset 0 0 60px rgba(0, 245, 255, 0.2);
    }
}

/* ===== FLOATING TECH STACK ===== */
.floating-tech-stack-external {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.tech-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    background: rgba(20, 20, 30, 0.95);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 2px solid rgba(0, 245, 255, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 18px rgba(0, 245, 255, 0.28);
    animation: float 5s ease-in-out infinite;
    transition: var(--transition);
    pointer-events: auto;
}

.tech-icon::before {
    content: attr(data-tech);
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 30, 0.9);
    color: var(--text-light);
    padding: 0.25rem 0.65rem;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono);
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border: 1px solid rgba(0, 245, 255, 0.25);
}

.tech-icon:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.tech-php { top: 11%; left: 10%; color: #777bb4; animation-delay: 0s; }
.tech-js { top: 21%; right: 4%; color: #f7df1e; animation-delay: 0.7s; }
.tech-python { top: 49%; left: 2%; color: #3776ab; animation-delay: 1.4s; }
.tech-html { top: 74%; left: 16%; color: #e34f26; animation-delay: 2.1s; }
.tech-css { bottom: 9%; right: 15%; color: #1572b6; animation-delay: 2.8s; }
.tech-react { top: 6%; right: 33%; color: #61dafb; animation-delay: 3.5s; }
.tech-node { bottom: 23%; left: 8%; color: #339933; animation-delay: 4.2s; }
.tech-git { top: 37%; right: 0; color: #f05032; animation-delay: 4.9s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(2deg); }
    50% { transform: translateY(-6px) rotate(-2deg); }
    75% { transform: translateY(-16px) rotate(1deg); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 2rem;
    animation: heroSlideUp 1.2s ease-out;
    line-height: 1.1;
    text-align: center;
}

.hero-roles {
    color: #d8d8d8;
    font-size: clamp(1rem, 2.4vw, 1.35rem);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.role-label {
    color: #a7a7a7;
}

.role-window {
    position: relative;
    display: inline-block;
    min-width: 16ch;
    height: 1.4em;
    overflow: hidden;
    vertical-align: middle;
}

.role-slider {
    color: #ffffff;
    position: absolute;
    inset: 0;
    display: inline-block;
    text-align: left;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.36s ease, filter 0.36s ease;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}

.role-slider.role-out.role-out-up {
    transform: translateY(-115%) scale(0.98);
    opacity: 0;
    filter: blur(2px);
}

.role-slider.role-out.role-out-down {
    transform: translateY(115%) scale(0.98);
    opacity: 0;
    filter: blur(2px);
}

.role-slider.role-in {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
}

.role-slider.role-in.role-in-up {
    animation: roleInUp 0.36s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.role-slider.role-in.role-in-down {
    animation: roleInDown 0.36s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes roleInUp {
    from { transform: translateY(115%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes roleInDown {
    from { transform: translateY(-115%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: heroSlideUp 1.2s ease-out 0.3s both;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    animation: heroSlideUp 1.2s ease-out 0.6s both;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ENHANCED BUTTONS ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #00f5ff 0%, #00d4aa 50%, #00b4d8 100%);
    color: #000;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.6);
    background: linear-gradient(135deg, #00f5ff 0%, #00e6cc 50%, #00c4e8 100%);
    color: #000;
}

.btn-outline-light {
    border: 2px solid #00f5ff;
    color: #00f5ff;
    background: rgba(0, 245, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.btn-outline-light:hover {
    background: #00f5ff;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 245, 255, 0.5);
    border-color: #00f5ff;
}

/* ===== SECTIONS ===== */
section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3); /* Very transparent to show particles */
    backdrop-filter: blur(0.5px);
}

.bg-dark-alt {
    background: rgba(10, 10, 15, 0.4) !important; /* Very transparent */
    backdrop-filter: blur(1px);
    position: relative;
}

.bg-dark-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 245, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 0, 128, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 400;
}

.about-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.about-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== ENHANCED SKILLS SECTION ===== */
.skill-card {
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(15px);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 245, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background: rgba(20, 20, 30, 0.95);
}

.skill-card:hover::before {
    opacity: 0.1;
}

.skill-icon {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.skill-card h4 {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

.skill-list {
    list-style: none;
    text-align: left;
}

.skill-list li {
    padding: 0.8rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.skill-list li:hover {
    color: var(--text-light);
    transform: translateX(5px);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== ENHANCED PROJECTS SECTION ===== */
.project-card {
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 245, 255, 0.2);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    background: rgba(20, 20, 30, 0.95);
}

.project-card:hover::before {
    opacity: 0.05;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.8);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.9) 0%, rgba(255, 0, 128, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.project-content {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.project-content h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.project-content p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.project-tech {
    margin-top: 2rem;
}

.tech-tag {
    display: inline-block;
    background: linear-gradient(135deg, #00f5ff 0%, #00d4aa 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.3rem 0.5rem 0.3rem 0;
    font-family: var(--font-mono);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.3);
    transition: var(--transition);
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.5);
    background: linear-gradient(135deg, #00f5ff 0%, #00e6cc 100%);
}

/* ===== ENHANCED CONTACT SECTION ===== */
.contact-form {
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(15px);
    padding: 4rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: var(--shadow-card);
}

/* ===== CONTACT INFO SECTION ===== */
.contact-info {
    padding: 2rem 0;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-details {
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00f5ff 0%, #00d4aa 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: #000;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
    flex-shrink: 0;
}

.contact-content h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

.contact-content a:hover {
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.contact-content span {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.3);
    color: var(--text-light);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: var(--transition);
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(0, 245, 255, 0.25);
    color: var(--text-light);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.social-links {
    margin-top: 3rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(0, 245, 255, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(20, 20, 30, 0.6);
    margin-bottom: 1rem;
}

.social-link:hover {
    color: #00f5ff;
    transform: translateY(-3px);
    border-color: #00f5ff;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.8);
    background: rgba(0, 245, 255, 0.1);
}

/* ===== FOOTER ===== */
footer {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 245, 255, 0.2);
    color: var(--text-muted);
    padding: 2rem 0;
    font-family: var(--font-mono);
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--border-radius);
    border: none;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 2px solid rgba(40, 167, 69, 0.5);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .profile-image-wrapper {
        width: 450px;
        height: 450px;
    }
    
    .profile-image {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 992px) {
    .profile-image-wrapper {
        width: 400px;
        height: 400px;
    }
    
    .profile-image {
        width: 340px;
        height: 340px;
    }

    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

}

@media (max-width: 768px) {
    .hero-section .row {
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .profile-image-wrapper {
        width: 350px;
        height: 350px;
    }
    
    .profile-image {
        width: 300px;
        height: 300px;
        border-radius: 16px;
    }

    .tech-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    .contact-info {
        margin-bottom: 3rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-right: 1rem;
    }
    
    .skill-card {
        padding: 2rem 1.5rem;
    }
    
    .project-content {
        padding: 2rem;
    }
    
    .social-link {
        padding: 0.8rem 1.2rem;
        font-size: 1.1rem;
        display: block;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .profile-image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .profile-image {
        width: 260px;
        height: 260px;
        border-radius: 14px;
    }

    .floating-tech-stack-external {
        display: none;
    }

    .contact-form {
        padding: 2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
        font-size: 1rem;
    }
    
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.project-image img,
.skill-card,
.project-card,
.btn {
    will-change: transform;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS STYLES ===== */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --bg-dark: #000000;
        --bg-dark-alt: #111111;
        --text-light: #ffffff;
        --primary-color: #00ffff;
    }
}
