/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
video {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

img {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize animations for better performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
    .light-particle {
        animation-duration: 30s;
    }
    
    .hero-logo-image {
        animation-duration: 8s;
    }
    
    .carousel-slide {
        transition-duration: 0.8s;
    }
}

/* Lazy loading styles */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Loading optimization */
video {
    background: #000;
}

video:not([loaded]) {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

/* Optimize animations for performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #0a0a1a 50%, #050510 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}


/* Social Media Logos */
.social-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.social-logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(6, 182, 212, 0.6));
    transform: scale(1.1);
}

/* Threads Icon */
.threads-icon {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: #06b6d4;
}

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

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #7c3aed, #0891b2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}


.nav-logo .logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5rem;
    color: #4c1d95;
    text-shadow: 0 0 10px rgba(76, 29, 149, 0.6), 0 0 20px rgba(76, 29, 149, 0.4), 0 0 30px rgba(76, 29, 149, 0.2);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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


@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    20% { 
        transform: translateY(-15px) rotate(20deg) scale(0.8);
        opacity: 0.6;
    }
    40% { 
        transform: translateY(-8px) rotate(40deg) scale(0.6);
        opacity: 0.2;
    }
    60% { 
        transform: translateY(-12px) rotate(60deg) scale(0.7);
        opacity: 0.4;
    }
    80% { 
        transform: translateY(-5px) rotate(80deg) scale(0.5);
        opacity: 0.1;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.8) 0%, rgba(6, 182, 212, 0.4) 40%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: subtleCyanGlow 4s ease-in-out infinite;
}

@keyframes subtleCyanGlow {
    0%, 100% { 
        opacity: 1.3;
        transform: translate(-50%, -50%) scale(1.2);
    }
    50% { 
        opacity: 1.6;
        transform: translate(-50%, -50%) scale(1.03);
    }
}


@keyframes projectorBeam {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.9);
        filter: blur(20px) brightness(1.2);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
        filter: blur(25px) brightness(1.5);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.3);
        filter: blur(30px) brightness(1.3);
    }
}


/* Light particles for projector effect */
.light-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(6, 182, 212, 0.6) 60%, transparent 100%);
    border-radius: 50%;
    animation: driftParticle 25s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    filter: brightness(1.2) contrast(1.1) blur(0.5px);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .light-particle {
        width: 3px;
        height: 3px;
    }
    
    /* General hero logo sizing - will be overridden by portal-specific styles */
    .hero-logo-image {
        width: 150px;
        height: 150px;
        max-width: 80%;
    }
    
    .hero-logo::before {
        width: 200px;
        height: 200px;
    }
    
    .hero-logo::after {
        width: 250px;
        height: 250px;
    }
    
    .hero {
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* General hero logo sizing - will be overridden by portal-specific styles */
    .hero-logo-image {
        width: 120px;
        height: 120px;
    }
    
    .light-particle {
        width: 2px;
        height: 2px;
    }
    
    .hero-logo::before {
        width: 150px;
        height: 150px;
    }
    
    .hero-logo::after {
        width: 180px;
        height: 180px;
    }
}

.particle-1 {
    top: 35%;
    left: 25%;
    animation-delay: 0s;
}

.particle-2 {
    top: 45%;
    right: 25%;
    animation-delay: 2.5s;
}

.particle-3 {
    bottom: 45%;
    left: 25%;
    animation-delay: 5s;
}

.particle-4 {
    top: 55%;
    right: 35%;
    animation-delay: 7.5s;
}

.particle-5 {
    bottom: 35%;
    right: 25%;
    animation-delay: 10s;
}

.particle-6 {
    top: 40%;
    left: 35%;
    animation-delay: 12.5s;
}

.particle-7 {
    top: 50%;
    left: 15%;
    animation-delay: 15s;
}

.particle-8 {
    bottom: 40%;
    right: 35%;
    animation-delay: 17.5s;
}

.particle-9 {
    top: 45%;
    left: 45%;
    animation-delay: 20s;
}

.particle-10 {
    bottom: 50%;
    left: 35%;
    animation-delay: 22.5s;
}

@keyframes driftParticle {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0px) translateX(0px) scale(0.6);
        filter: brightness(1.1) contrast(1.0);
    }
    12.5% {
        opacity: 0.8;
        transform: translateY(-25px) translateX(15px) scale(1.2);
        filter: brightness(1.4) contrast(1.2);
    }
    25% {
        opacity: 0.6;
        transform: translateY(-15px) translateX(-10px) scale(0.9);
        filter: brightness(1.3) contrast(1.1);
    }
    37.5% {
        opacity: 0.9;
        transform: translateY(-30px) translateX(20px) scale(1.4);
        filter: brightness(1.5) contrast(1.3);
    }
    50% {
        opacity: 0.3;
        transform: translateY(-8px) translateX(-12px) scale(0.5);
        filter: brightness(1.0) contrast(1.0);
    }
    62.5% {
        opacity: 0.7;
        transform: translateY(-20px) translateX(18px) scale(1.1);
        filter: brightness(1.3) contrast(1.1);
    }
    75% {
        opacity: 0.5;
        transform: translateY(-12px) translateX(-8px) scale(0.8);
        filter: brightness(1.2) contrast(1.0);
    }
    87.5% {
        opacity: 1.0;
        transform: translateY(-35px) translateX(25px) scale(1.5);
        filter: brightness(1.6) contrast(1.3);
    }
}

.hero-logo-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.05);
    animation: logoGlow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 3;
}

.hero-logo-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6b46c1 0%, #3b82f6 25%, #8b5cf6 50%, #a855f7 75%, #9333ea 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    mix-blend-mode: overlay;
    opacity: 0.8;
    border-radius: 50%;
    z-index: 1;
}

@keyframes logoGlow {
    0% {
        filter: brightness(1.0) contrast(1.0);
    }
    100% {
        filter: brightness(1.2) contrast(1.1);
    }
}

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

.hero-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    background: linear-gradient(45deg, #6b46c1, #06b6d4, #10b981);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.title-line:nth-child(2) {
    animation-delay: 1s;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a1a1aa;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::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: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
}

.hero-cta {
    margin: 2rem 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #06b6d4;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    opacity: 1;
}

.scroll-line {
    width: 4px;
    height: 50px;
    background: linear-gradient(to bottom, #06b6d4, #6b46c1, transparent);
    border-radius: 2px;
    animation: scrollPulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
    opacity: 1;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

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

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
}

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

.about-text h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #06b6d4;
}

.about-text p {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(107, 70, 193, 0.3);
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
    border-color: rgba(107, 70, 193, 0.5);
    box-shadow: 0 15px 30px rgba(107, 70, 193, 0.2);
}

.about-image img,
.about-image video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.about-image video {
    border-radius: 12px;
    overflow: hidden;
}

.about-image:hover img,
.about-image:hover video {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: #ffffff;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

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

.image-overlay h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #06b6d4;
}

.image-overlay p {
    color: #d1d5db;
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio {
    background: #000000;
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(107, 70, 193, 0.3);
    color: #ffffff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    border-color: transparent;
    transform: translateY(-2px);
}

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

/* Projects Page Styles */
.projects-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 2rem 0;
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(107, 70, 193, 0.3);
}

.back-to-vista {
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.back-to-vista:hover {
    background: linear-gradient(45deg, #7c3aed, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.3);
}

.projects-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    color: #06b6d4;
    margin: 0;
}

.projects-content {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.project-section:hover {
    transform: translateY(-5px);
    border-color: rgba(107, 70, 193, 0.5);
    box-shadow: 0 15px 30px rgba(107, 70, 193, 0.2);
}

.project-media {
    flex: 0 0 400px;
    width: 400px;
    height: 225px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.project-info {
    flex: 1;
    padding: 1rem;
}

.project-info h3 {
    font-family: 'Orbitron', monospace;
    color: #06b6d4;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.project-info p {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 1.1rem;
}

.project-tags {
    margin: 0.5rem 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.project-tag {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(107, 70, 193, 0.3);
    color: #06b6d4;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.3), rgba(6, 182, 212, 0.3));
    border-color: rgba(107, 70, 193, 0.5);
    transform: translateY(-1px);
}

.project-social {
    margin-top: 1.5rem;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    border: 1px solid rgba(107, 70, 193, 0.3);
}

.instagram-link:hover {
    background: linear-gradient(45deg, #7c3aed, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.3);
    border-color: rgba(107, 70, 193, 0.5);
}

.instagram-link i {
    font-size: 1.2rem;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #06b6d4;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(107, 70, 193, 0.3);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    color: #06b6d4;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #d1d5db;
    font-size: 0.9rem;
    margin: 0;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(45deg, #7c3aed, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-link {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.footer-link:hover {
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(107, 70, 193, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile responsiveness for projects page */
@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .projects-header h1 {
        font-size: 2rem;
    }
    
    .back-to-vista {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .project-section {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .project-media {
        width: 100%;
        height: 200px;
        flex: none;
    }
    
    .project-info h3 {
        font-size: 1.5rem;
    }
}

/* Media Carousel for Portfolio Items */
.media-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide video,
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(107, 70, 193, 0.8);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #06b6d4;
    transform: scale(1.2);
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid rgba(107, 70, 193, 0.2);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: rgba(107, 70, 193, 0.5);
    box-shadow: 0 20px 40px rgba(107, 70, 193, 0.2);
}

.item-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #06b6d4;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(107, 70, 193, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    text-align: center;
}

.portfolio-item:hover .item-overlay {
    opacity: 1;
    justify-content: center;
    padding-top: 0;
}


.item-description {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 280px;
    text-align: justify;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #f0f0f0;
    margin: 0 auto;
    padding: 0.5rem 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
    text-indent: 0;
    word-spacing: normal;
    hyphens: auto;
    text-rendering: optimizeLegibility;
    position: relative;
    top: 40%;
    transform: translateY(calc(-50% + 20px));
}


.portfolio-item:hover .item-description {
    opacity: 1;
    transform: translateY(-50%);
}

.item-overlay h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    color: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    line-height: 1.2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    width: auto;
    max-width: 90%;
}

.portfolio-item:hover .item-overlay h3 {
    opacity: 0;
    margin-bottom: 1rem;
}

.item-overlay p:not(.item-description) {
    color: #a0a0a0;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    padding: 0 1rem;
}

.view-project {
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.2);
}

.view-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.3);
}

.view-project-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4rem auto 3rem auto;
    padding: 0 2rem;
    max-width: 400px;
    width: 100%;
}


/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #06b6d4;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateX(10px);
    border-color: rgba(107, 70, 193, 0.5);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.1);
}

.social-link i {
    font-size: 1.5rem;
    color: #06b6d4;
}

.contact-form {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #a1a1aa;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: #06b6d4;
    background: #000000;
    padding: 0 0.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
}

/* Footer */
.footer {
    background: #000000;
    border-top: 1px solid rgba(107, 70, 193, 0.2);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
    color: #a1a1aa;
    font-size: 0.7rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-container {
    justify-content: center;
}

.footer-logo .logo-image {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-item {
        min-height: 280px;
    }

    .item-content {
        padding: 1.5rem;
    }

    .item-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .item-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .view-project {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .view-project-container {
        margin: 2.5rem 0 1.5rem 0;
        padding: 0 1rem;
        width: 100%;
        max-width: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .view-project {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        letter-spacing: normal;
    }
    
    /* Tablet background - black instead of gradient */
    body, html {
        background: #000000 !important;
    }
    
    /* Ensure portal page also has black background on tablet */
    .portal-links {
        background: transparent !important;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .portfolio-item {
        min-height: 250px;
    }

    .item-content {
        padding: 1.25rem;
    }

    .item-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .item-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .view-project {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .view-project-container {
        margin: 2.5rem auto 1.5rem auto;
        padding: 0 1.5rem;
        width: calc(100% - 3rem);
        max-width: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .view-project {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        letter-spacing: normal;
    }
    
    /* Mobile background - black instead of gradient */
    body, html {
        background: #000000 !important;
    }
    
    /* Ensure portal page also has black background on mobile */
    .portal-links {
        background: transparent !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .portfolio-item {
        min-height: 280px;
    }
    
    .item-overlay {
        padding: 1rem;
    }
    
    .item-overlay h3 {
        font-size: 1.2rem;
        letter-spacing: 0.2px;
        max-width: 80%;
    }
    
    .item-overlay p:not(.item-description) {
        font-size: 0.8rem;
    }
    
    .item-description {
        font-size: 0.85rem;
        max-width: 240px;
        padding: 0.4rem 0.6rem;
        line-height: 1.3;
        letter-spacing: 0;
        text-align: justify;
    }
    
    .portfolio-item:hover .item-overlay h3 {
        opacity: 0;
        margin-bottom: 0.75rem;
    }
    
    .view-project-container {
        margin: 2rem auto 1rem auto;
        padding: 0 1rem;
        width: calc(100% - 2rem);
        max-width: 280px;
    }
    
    .view-project {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        letter-spacing: normal;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(107, 70, 193, 0.3);
    border-top: 3px solid #6b46c1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Portal Background Video */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -2;
}

/* Portal Page Styles */
.portal-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    width: 100%;
}

.main-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

/* Desktop: 3 columns × 2 rows layout */
@media (min-width: 769px) {
    .main-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .portal-link {
        width: 100%;
        min-height: 80px;
        padding: 1.5rem 1rem;
        aspect-ratio: 1.5;
    }
}


.portal-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.portal-link.small {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
}

.portal-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.portal-link:hover::before {
    left: 100%;
}

.portal-link:hover,
.portal-link:active {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    transform: translateY(-3px);
}

/* Mobile touch interactions */
@media (max-width: 768px) {
    .portal-link:active {
        transform: translateY(-1px) scale(0.98);
        background: rgba(6, 182, 212, 0.15);
    }
    
    /* Ensure hero section is properly centered on mobile */
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 3rem 1rem 1rem 1rem;
        position: relative;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding-top: 1rem;
        position: relative;
        z-index: 10;
    }
}

.portal-link i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #06b6d4;
    transition: all 0.3s ease;
}

.portal-link.small i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portal-link:hover i {
    color: #06b6d4;
    transform: scale(1.1);
}

.portal-link span {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.portal-link.small span {
    font-size: 0.8rem;
}


/* Black Logo with Subtle Light Blue Diffused Glow */
.hero-logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: brightness(0) invert(0);
    transition: all 0.4s ease;
    animation: subtleFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
}

.hero-logo-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    animation: subtleAccent 6s ease-in-out infinite;
}

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

.hero-logo-image:hover::before {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
}

@keyframes subtleFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-8px);
    }
}

@keyframes subtleAccent {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.05);
    }
}

@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%; 
        filter: brightness(1.2);
    }
}

@keyframes glow {
    0% { 
        text-shadow: 0 0 5px rgba(59, 130, 246, 0.5), 0 0 10px rgba(139, 92, 246, 0.3), 0 0 15px rgba(236, 72, 153, 0.2);
    }
    100% { 
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(139, 92, 246, 0.6), 0 0 30px rgba(236, 72, 153, 0.4);
    }
}

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

/* Under Construction Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.modal-header h2 {
    font-family: 'Orbitron', monospace;
    color: #06b6d4;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.close {
    color: #06b6d4;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #0891b2;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-icon {
    font-size: 3rem;
    color: #06b6d4;
    margin: 1rem 0;
    animation: pulse 2s ease-in-out infinite;
}

.modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    text-align: center;
}

.modal-btn {
    background: linear-gradient(45deg, #6b46c1, #06b6d4);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.modal-btn:hover {
    background: linear-gradient(45deg, #7c3aed, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Portal Hero Title */
.hero-title {
    font-family: 'Orbitron', monospace;
    font-weight: 300;
    font-size: 3rem;
    color: #06b6d4;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    margin: 1rem 0;
    text-align: center;
    animation: titleGlow 3s ease-in-out infinite;
    letter-spacing: 3px;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    }
    50% { 
        text-shadow: 0 0 25px rgba(6, 182, 212, 0.8);
    }
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: #06b6d4;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    animation: subtitleGlow 3s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% { 
        text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    }
    50% { 
        text-shadow: 0 0 25px rgba(6, 182, 212, 0.8);
    }
}

/* MOBILE PORTAL FIXES - Force visibility */
@media screen and (max-width: 768px) {
    /* Override any conflicting styles */
    .hero-logo-image {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
        position: relative !important;
        z-index: 100 !important;
    }
    
    .hero-logo {
        margin-bottom: 1.5rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding-top: 1rem !important;
        position: relative !important;
        z-index: 100 !important;
    }
    
    .hero {
        padding: 3rem 1rem 1rem 1rem !important;
        min-height: 100vh !important;
    }
    
    .hero-content {
        padding-top: 1rem !important;
        z-index: 100 !important;
    }
}

/* Responsive Design for Portal */
@media (max-width: 768px) {
    .portal-links {
        margin-top: 2rem;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .main-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        width: 100%;
    }
    
    /* Force logo visibility and positioning */
    .hero-logo-image {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .hero-logo {
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-top: 1rem;
        position: relative;
        z-index: 10;
    }
    
    .hero-logo::before {
        width: 140px;
        height: 140px;
    }
    
    
    .portal-link {
        padding: 1rem 0.5rem;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .portal-link.small {
        padding: 0.75rem 0.5rem;
        min-height: 70px;
    }
    
    .hero-logo-image {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px;
        max-height: 120px;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
    
    .hero-title {
        font-family: 'Orbitron', monospace;
        font-weight: 300;
        font-size: 2rem;
        color: #06b6d4;
        text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
        margin: 1rem 0;
        text-align: center;
        animation: titleGlow 3s ease-in-out infinite;
        letter-spacing: 2px;
        line-height: 1.2;
        width: 100%;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
        gap: 1.5rem;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-logo {
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-top: 1rem;
    }
    
    .hero-logo::before {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .main-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }
    
    .portal-link {
        padding: 0.75rem 0.25rem;
        min-height: 70px;
        width: 100%;
    }
    
    .portal-link.small {
        padding: 0.5rem 0.25rem;
        min-height: 60px;
    }
    
    .hero-logo-image {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px;
        max-height: 100px;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
        width: 100%;
        text-align: center;
    }
    
    .portal-link i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .portal-link.small i {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .portal-link span {
        font-size: 0.8rem;
    }
    
    .portal-link.small span {
        font-size: 0.7rem;
    }
    
    .hero-content {
        padding: 0.5rem;
        gap: 1rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-logo {
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-top: 0.5rem;
    }
    
    .hero-logo::before {
        width: 120px;
        height: 120px;
    }
    
    .portal-links {
        width: 100%;
        max-width: 100%;
        margin-top: 1.5rem;
    }
}

