/* Modern Portfolio Design - Daniel Urbano */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* CSS Variables for Modern Design */
:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #232526 0%, #414345 100%);
    
    --primary-color: #667eea;
    --secondary-color: #f5576c;
    --accent-color: #00f2fe;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --bg-dark: #1a202c;
    --bg-card: #2d3748;
    --bg-light: #f7fafc;
    
    /* Gradients */
    --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --card-gradient: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --glass-effect: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 6rem 0;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 30px 60px rgba(0, 0, 0, 0.3);
    --glow-primary: 0 0 30px rgba(102, 126, 234, 0.3);
    --glow-accent: 0 0 30px rgba(0, 242, 254, 0.3);
    
    /* Animations */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
    overflow-x: hidden;
}

/* Container & Layout */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-padding);
    position: relative;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.navbar {
    display: flex;
    gap: 3rem;
}

.navbar a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    position: relative;
    transition: var(--transition-fast);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.navbar a i {
    display: none; /* Hide icons on desktop */
}

.navbar a span {
    display: inline; /* Show text on desktop */
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent-color);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

#menu-icon {
    display: none;
    font-size: 2.4rem;
    color: var(--text-light);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--hero-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    margin-bottom: 2rem;
}

.greeting {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.name {
    display: block;
    font-size: 5.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.role {
    display: block;
    font-size: 3rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.typed-text {
    color: rgba(255, 255, 255, 0.9);
}

.multiple-text {
    color: var(--accent-color);
    font-weight: 600;
}

.hero-description {
    font-size: 1.8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 50ch;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 3rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium), var(--glow-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: var(--glow-accent);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-service {
    background: var(--accent-gradient);
    color: var(--text-light);
    margin-top: 2rem;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-accent);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--glow-accent);
}

.social-link i {
    font-size: 2rem;
}

/* Hero Visual - Tech Showcase */
.tech-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50rem;
    position: relative;
}

.tech-circle {
    position: relative;
    width: 40rem;
    height: 40rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-tech {
    position: absolute;
    width: 12rem;
    height: 12rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
    box-shadow: var(--glow-primary);
    z-index: 3;
}

.center-tech i {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.center-tech span {
    font-size: 1.4rem;
    font-weight: 700;
}

.floating-tech {
    position: absolute;
    width: 8rem;
    height: 8rem;
    background: var(--card-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    animation: orbit 20s linear infinite;
}

.floating-tech:hover {
    transform: scale(1.1);
    background: var(--accent-gradient);
    box-shadow: var(--glow-accent);
}

.floating-tech i {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.floating-tech span {
    font-size: 1rem;
    font-weight: 600;
}

.tech-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.tech-2 {
    top: 25%;
    right: 0;
    animation-delay: -3.33s;
}

.tech-3 {
    bottom: 25%;
    right: 0;
    animation-delay: -6.66s;
}

.tech-4 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -10s;
}

.tech-5 {
    bottom: 25%;
    left: 0;
    animation-delay: -13.33s;
}

.tech-6 {
    top: 25%;
    left: 0;
    animation-delay: -16.66s;
}

/* About Skills Visualization */
.skills-visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45rem;
    position: relative;
}

.skill-orbit {
    position: relative;
    width: 35rem;
    height: 35rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.central-profile {
    position: absolute;
    width: 15rem;
    height: 15rem;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
    box-shadow: 0 0 30px rgba(245, 87, 108, 0.3);
    z-index: 3;
    text-align: center;
}

.central-profile i {
    font-size: 5rem;
    margin-bottom: 0.5rem;
}

.central-profile span {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.central-profile small {
    font-size: 1.2rem;
    opacity: 0.9;
}

.skill-node {
    position: absolute;
    width: 7rem;
    height: 7rem;
    background: var(--card-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    animation: pulse 3s ease-in-out infinite;
}

.skill-node:hover {
    transform: scale(1.15);
    background: var(--primary-gradient);
    box-shadow: var(--glow-primary);
}

.skill-node i {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.skill-node span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.skill-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.skill-2 {
    top: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

.skill-3 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

.skill-4 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.5s;
}

.skill-5 {
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.skill-6 {
    top: 20%;
    left: 10%;
    animation-delay: 2.5s;
}

/* Animations */
@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(16rem) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(16rem) rotate(-360deg);
    }
}

/* Fixed position orbit for mobile compatibility */
@media (max-width: 768px) {
    @keyframes orbit {
        0% {
            transform: rotate(0deg) translateX(12rem) rotate(0deg);
        }
        100% {
            transform: rotate(360deg) translateX(12rem) rotate(-360deg);
        }
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Responsive adjustments for visualizations */
@media (max-width: 768px) {
    .tech-showcase {
        height: 40rem;
    }
    
    .tech-circle {
        width: 30rem;
        height: 30rem;
    }
    
    .center-tech {
        width: 10rem;
        height: 10rem;
    }
    
    .center-tech i {
        font-size: 3rem;
    }
    
    .floating-tech {
        width: 6rem;
        height: 6rem;
    }
    
    .floating-tech i {
        font-size: 2rem;
    }
    
    .skills-visualization {
        height: 35rem;
    }
    
    .skill-orbit {
        width: 28rem;
        height: 28rem;
    }
    
    .central-profile {
        width: 12rem;
        height: 12rem;
    }
    
    .central-profile i {
        font-size: 4rem;
    }
    
    .skill-node {
        width: 6rem;
        height: 6rem;
    }
    
    .skill-node i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .tech-showcase {
        height: 35rem;
    }
    
    .tech-circle {
        width: 25rem;
        height: 25rem;
    }
    
    .skills-visualization {
        height: 30rem;
    }
    
    .skill-orbit {
        width: 24rem;
        height: 24rem;
    }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out;
    opacity: 1 !important; /* Asegurar opacidad completa */
}

.hero-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    animation: float 6s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 6rem;
    height: 6rem;
    background: var(--glass-effect);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 4s ease-in-out infinite;
}

.floating-element i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.devops-icon {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.cloud-icon {
    top: 60%;
    left: -5%;
    animation-delay: 1s;
}

.terminal-icon {
    bottom: 10%;
    right: 20%;
    animation-delay: 2s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 1s ease-out 2s both;
}

.scroll-line {
    width: 2px;
    height: 4rem;
    background: var(--accent-gradient);
    margin: 0 auto 1rem;
    animation: scrollPulse 2s infinite;
}

.scroll-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Styles */
.about {
    background: var(--bg-dark);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(102, 126, 234, 0.03) 50%, transparent 51%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.image-container img {
    width: 100%;
    height: auto;
    transition: var(--transition-slow);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.image-container:hover .image-overlay {
    opacity: 0.9;
}

.overlay-content {
    text-align: center;
    color: var(--text-light);
    transform: translateY(2rem);
    transition: var(--transition-smooth);
}

.image-container:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.about-text {
    padding-left: 2rem;
}

.about-role {
    font-size: 2.4rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-description {
    font-size: 1.7rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-gradient);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.3rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Expertise Section */
.expertise {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
}

.expertise-card {
    padding: 3rem;
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-1rem);
    box-shadow: var(--shadow-medium);
    border-color: rgba(102, 126, 234, 0.3);
}

.card-icon {
    width: 8rem;
    height: 8rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--glow-primary);
}

.card-icon i {
    font-size: 3.5rem;
    color: var(--text-light);
}

.expertise-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.expertise-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Services Section */
.services {
    background: var(--bg-dark);
}

.services .container {
    max-width: 1600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    justify-content: center;
}

.service-card {
    padding: 4rem 3rem;
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-1rem);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 10rem;
    height: 10rem;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3rem;
    box-shadow: 0 0 30px rgba(245, 87, 108, 0.3);
}

.service-icon i {
    font-size: 4rem;
    color: var(--text-light);
}

.service-card h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.feature {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 1.2rem;
    color: var(--text-light);
    backdrop-filter: blur(10px);
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45rem, 1fr));
    gap: 4rem;
}

/* New Project Card Styles */
.portfolio-project {
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.portfolio-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

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

.portfolio-project:hover {
    transform: translateY(-1rem);
    box-shadow: var(--shadow-medium);
    border-color: rgba(102, 126, 234, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.project-icon {
    width: 6rem;
    height: 6rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
    flex-shrink: 0;
}

.project-icon i {
    font-size: 2.8rem;
    color: var(--text-light);
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: flex-start;
}

.tech-tag {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px solid rgba(0, 242, 254, 0.2);
    backdrop-filter: blur(5px);
    transition: var(--transition-fast);
}

.tech-tag:hover {
    background: rgba(0, 242, 254, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.project-content h3 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
}

.project-achievements {
    margin-bottom: 3rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.4rem;
}

.achievement i {
    color: #10b981;
    font-size: 1.6rem;
    flex-shrink: 0;
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.project-link:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: var(--glow-accent);
}

.project-link i {
    font-size: 1.6rem;
}

/* Legacy Portfolio Styles (keeping for compatibility) */
.portfolio-item {
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.portfolio-item:hover {
    transform: translateY(-1rem);
    box-shadow: var(--shadow-medium);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 25rem;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-image:hover .portfolio-overlay {
    opacity: 1;
}

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

.overlay-content {
    text-align: center;
    color: var(--text-light);
    transform: translateY(2rem);
    transition: var(--transition-smooth);
}

.portfolio-image:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.portfolio-cert {
    padding: 2rem;
    text-align: center;
}

.portfolio-cert img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

/* Contact Section */
.contact {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(0, 242, 254, 0.02) 50%, transparent 51%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: grid;
    gap: 3rem;
}

.contact-card {
    padding: 3rem;
    background: var(--card-gradient);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 6rem;
    height: 6rem;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--glow-accent);
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.4);
}

.contact-icon i {
    font-size: 2.5rem;
    color: var(--text-light);
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
}

.contact-link:hover::after {
    width: 100%;
}

.contact-link:hover {
    color: var(--text-light);
}

/* Contact Visual Animation */
.contact-animation {
    position: relative;
    height: 50rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(0, 242, 254, 0.15) 50%, 
        rgba(245, 87, 108, 0.1) 100%);
    border-radius: 50% 50% 0 0;
    animation: wave-motion 8s ease-in-out infinite;
}

.wave-1 {
    animation-delay: 0s;
    opacity: 0.8;
}

.wave-2 {
    animation-delay: -2s;
    opacity: 0.6;
    animation-duration: 10s;
    background: linear-gradient(45deg, 
        rgba(0, 242, 254, 0.1) 0%, 
        rgba(245, 87, 108, 0.15) 50%, 
        rgba(102, 126, 234, 0.1) 100%);
}

.wave-3 {
    animation-delay: -4s;
    opacity: 0.4;
    animation-duration: 12s;
    background: linear-gradient(45deg, 
        rgba(245, 87, 108, 0.1) 0%, 
        rgba(102, 126, 234, 0.15) 50%, 
        rgba(0, 242, 254, 0.1) 100%);
}

.floating-contact-elements {
    position: relative;
    width: 40rem;
    height: 40rem;
    z-index: 2;
}

.floating-contact-element {
    position: absolute;
    width: 8rem;
    height: 8rem;
    background: var(--card-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-weight: 500;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    animation: float-contact 6s ease-in-out infinite;
    cursor: pointer;
    text-decoration: none;
}

.floating-contact-element:hover {
    transform: scale(1.2) translateY(-10px);
    background: var(--accent-gradient);
    box-shadow: 
        var(--glow-accent),
        0 15px 35px rgba(139, 69, 19, 0.4);
    border-color: var(--accent-color);
}

.floating-contact-element i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.floating-contact-element:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #FFD700;
}

.floating-contact-element span {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.contact-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.contact-2 {
    top: 30%;
    right: 10%;
    animation-delay: 1.2s;
}

.contact-3 {
    bottom: 30%;
    right: 10%;
    animation-delay: 2.4s;
}

.contact-4 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 3.6s;
}

.contact-5 {
    top: 30%;
    left: 10%;
    animation-delay: 4.8s;
}

.central-contact-hub {
    position: absolute;
    width: 15rem;
    height: 15rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-weight: 700;
    box-shadow: var(--glow-primary);
    z-index: 3;
    animation: pulse-hub 4s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.central-contact-hub i {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.central-contact-hub span {
    font-size: 1.6rem;
    text-align: center;
    font-weight: 700;
}

/* Contact Visual Legacy Styles */
.contact-visual {
    position: relative;
}

.contact-illustration {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-illustration img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.illustration-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pulse-dot {
    width: 2rem;
    height: 2rem;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    animation: pulse 2s infinite;
}

.pulse-delay-1 {
    animation-delay: 0.5s;
    top: 2rem;
    left: 2rem;
}

.pulse-delay-2 {
    animation-delay: 1s;
    top: -2rem;
    left: -2rem;
}

/* Wave and Contact Animations */
@keyframes wave-motion {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(-45%) translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateX(-50%) translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateX(-55%) translateY(-15px) rotate(-1deg);
    }
}

@keyframes float-contact {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@keyframes pulse-hub {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--glow-primary);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(102, 126, 234, 0.5);
    }
}

/* Responsive Contact Animation */
@media (max-width: 768px) {
    .contact-animation {
        height: 40rem;
    }
    
    .floating-contact-elements {
        width: 30rem;
        height: 30rem;
    }
    
    .floating-contact-element {
        width: 6rem;
        height: 6rem;
    }
    
    .floating-contact-element i {
        font-size: 2rem;
    }
    
    .floating-contact-element span {
        font-size: 0.9rem;
    }
    
    .central-contact-hub {
        width: 12rem;
        height: 12rem;
    }
    
    .central-contact-hub i {
        font-size: 4rem;
    }
    
    .central-contact-hub span {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .contact-animation {
        height: 35rem;
    }
    
    .floating-contact-elements {
        width: 25rem;
        height: 25rem;
    }
    
    .floating-contact-element {
        width: 5rem;
        height: 5rem;
    }
    
    .floating-contact-element i {
        font-size: 1.8rem;
    }
    
    .floating-contact-element span {
        font-size: 0.8rem;
    }
    
    .central-contact-hub {
        width: 10rem;
        height: 10rem;
    }
    
    .central-contact-hub i {
        font-size: 3.5rem;
    }
    
    .central-contact-hub span {
        font-size: 1.2rem;
    }
}

/* Footer */
.footer {
    margin-top: 5rem;
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(40, 40, 70, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 105, 180, 0.2);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 3rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 60rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-light);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-5rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(5rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2rem);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hero {
        padding: 0 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
        align-items: center;
        text-align: center;
    }
    
    .hero-visual {
        order: 2;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .navbar {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 32, 44, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        transition: var(--transition-smooth);
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
    }
    
    .navbar.active {
        top: 100%;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar a {
        display: block;
        padding: 1.5rem 3rem;
        font-size: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: var(--transition-fast);
    }
    
    .navbar a:hover {
        background: rgba(102, 126, 234, 0.1);
        padding-left: 4rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .portfolio-project {
        padding: 2.5rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    
    .project-tech-stack {
        justify-content: center;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    font-weight: 500;
    z-index: 3000;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-smooth);
    min-width: 30rem;
    box-shadow: var(--shadow-medium);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification-info {
    background: var(--primary-gradient);
}

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

.loader.fade-out {
    opacity: 0;
}

.loader-spinner {
    width: 6rem;
    height: 6rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Interactive States */
.btn:focus-visible,
.social-link:focus-visible,
.contact-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.card-hover-effect {
    transition: var(--transition-smooth);
}

.card-hover-effect:hover {
    transform: translateY(-0.5rem) scale(1.02);
}

/* High Contrast Mode */
.high-contrast {
    --text-muted: #ffffff;
    --bg-card: #000000;
    --glass-effect: rgba(255, 255, 255, 0.2);
}

.high-contrast .btn {
    border: 2px solid currentColor;
}

/* Reduced Motion */
.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Keyboard Navigation */
.keyboard-nav :focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .floating-elements,
    .scroll-indicator {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 2rem 0;
    }
    
    .hero {
        min-height: auto;
    }
}

/* Dark/Light Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
}

.theme-toggle i {
    font-size: 2.5rem;
}

/* Light Theme Variables */
.light-theme {
    --bg-dark: #ffffff;
    --bg-card: #f8fafc;
    --text-light: #1a202c;
    --text-muted: #4a5568;
    --glass-effect: rgba(0, 0, 0, 0.05);
}

.light-theme .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Additional Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-zoom {
    animation: zoomIn 0.5s ease-out;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.1s ease;
    width: 0%;
}

/* Enhanced Mobile Optimizations */
@media (max-width: 480px) {
    .hero {
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .floating-element {
        width: 4rem;
        height: 4rem;
    }
    
    .floating-element i {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 2rem;
        width: 95%;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .service-card {
        padding: 3rem 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .portfolio-project {
        padding: 2rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    .project-tech-stack {
        justify-content: center;
    }
    
    .project-links {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-link {
        justify-content: center;
    }
    
    .tech-tag {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
}

/* Tablet and Medium Screen Optimizations */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .hero {
        padding: 0 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
        max-width: 800px;
    }
    
    .hero-text {
        order: 1;
        align-items: center;
        text-align: center;
    }
    
    .hero-visual {
        order: 2;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Ultra-wide Screen Optimizations */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        gap: 8rem;
    }
    
    .about-content {
        gap: 8rem;
    }
}

/* Tablet Landscape Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
    
    .navbar {
        gap: 2rem;
    }
    
    .navbar a {
        font-size: 1.4rem;
    }
}

/* Hover Effects for Touch Devices */
@media (hover: none) {
    .expertise-card:hover,
    .service-card:hover,
    .portfolio-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* Focus States for Better Accessibility */
.btn:focus,
.social-link:focus,
.navbar a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Smooth Scrolling for All Browsers */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gradient);
}

/* Selection Styles */
::selection {
    background: var(--accent-color);
    color: var(--text-light);
}

::-moz-selection {
    background: var(--accent-color);
    color: var(--text-light);
}

/* Learning Resources Modal */
.learning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.learning-modal.show {
    opacity: 1;
    visibility: visible;
}

.learning-modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
}

.learning-modal.show .learning-modal-content {
    transform: scale(1) translateY(0);
}

.learning-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.learning-modal-header h3 {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.learning-modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.learning-modal-close:hover {
    color: var(--accent-color);
    background: rgba(255, 105, 180, 0.2);
}

.learning-modal-body {
    padding: 2rem 3rem 3rem;
}

.modal-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.resource-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.resource-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resource-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resource-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.modal-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-footer i {
    color: var(--accent-color);
}

/* Responsive Design for Learning Modal */
@media (max-width: 768px) {
    .learning-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .learning-modal-header,
    .learning-modal-body {
        padding: 1.5rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resource-card {
        padding: 1.5rem;
    }
}
