/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism Card Effect */
.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 211, 238, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.2);
}

/* Navbar Styles */
#navbar {
    background: transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22D3EE 0%, #FACC15 100%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, #22D3EE 0%, #FACC15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Title Gradient */
.gradient-hero-text {
    background: linear-gradient(135deg, #F1F5F9 0%, #22D3EE 50%, #FACC15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

.gradient-accent-text {
    background: linear-gradient(135deg, #22D3EE 0%, #FACC15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Hero Section Animations */
.hero-title {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1.2s ease-out;
}

.hero-buttons {
    animation: fadeInUp 1.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* Glow Button Effect */
.glow-button {
    position: relative;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.glow-button:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.8);
}

/* Stat Box Animation */
.stat-box {
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px) scale(1.05);
}

/* Section Title */
.section-title {
    position: relative;
    display: inline-block;
}

/* Service Card Hover Effect */
.service-card {
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: #22D3EE;
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.3);
}

/* Portfolio Item Hover */
.portfolio-item {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.portfolio-item:hover {
    border-color: #22D3EE;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
}

/* Gallery Item Hover */
.gallery-item {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: #22D3EE;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content {
    max-width: 100%;
    max-height: 90vh;
    display: none;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.5);
}

.lightbox-content.active {
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #22D3EE;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #FACC15;
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(34, 211, 238, 0.3);
    color: #F1F5F9;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(34, 211, 238, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Social Icon Hover */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(34, 211, 238, 0.5);
}

/* Form Input Focus */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

/* Scroll Animation */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}

::-webkit-scrollbar-thumb {
    background: #22D3EE;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FACC15;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 20px;
        padding: 10px 15px;
    }
    
    .lightbox-close {
        font-size: 30px;
        right: 20px;
        top: 10px;
    }
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #22D3EE 0%, #FACC15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation for Stats */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-box:hover {
    animation: pulse 1s infinite;
}

/* Video Overlay */
video {
    filter: brightness(0.7);
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    border: 4px solid rgba(34, 211, 238, 0.3);
    border-top: 4px solid #22D3EE;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}