/* CSS Variables - Analogous Color Scheme */
:root {
    /* Primary Colors - Blue to Purple Analogous Scheme */
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #7c3aed;
    --secondary-dark: #6d28d9;
    --secondary-light: #8b5cf6;
    --accent-color: #ec4899;
    --accent-dark: #db2777;
    --accent-light: #f472b6;
    
    /* Dark Theme Colors */
    --background-dark: #0f172a;
    --background-darker: #020617;
    --surface-dark: #1e293b;
    --surface-darker: #334155;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    --gradient-dark: linear-gradient(135deg, var(--background-dark), var(--surface-dark));
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --transition-morph: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-dark);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

/* Global Button Styles */
.btn, button, input[type="submit"], .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-morph);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn::before, button::before, input[type="submit"]::before, .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 var(--transition-slow);
}

.btn:hover::before, button:hover::before, input[type="submit"]:hover::before, .button:hover::before {
    left: 100%;
}

.btn:hover, button:hover, input[type="submit"]:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn.is-primary, .button.is-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn.is-secondary, .button.is-secondary {
    background: var(--gradient-accent);
    color: var(--text-primary);
}

.btn.is-outlined, .button.is-outlined {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.is-outlined:hover, .button.is-outlined:hover {
    background: var(--primary-color);
    color: var(--text-primary);
}

/* Header Styles */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    z-index: 1000;
}

.navbar-brand strong {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-item {
    position: relative;
    transition: all var(--transition-normal);
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-item:hover::after {
    width: 80%;
}

.navbar-burger span {
    background-color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

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

.hero-section .title {
    color: var(--text-primary) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: morphTitle 2s ease-out;
}

.hero-section .subtitle {
    color: var(--text-primary) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    animation: morphSubtitle 2s ease-out 0.3s both;
}

.hero-section p {
    color: var(--text-primary) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: morphText 2s ease-out 0.6s both;
}

/* Morphing Animations */
@keyframes morphTitle {
    0% {
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        transform: scale(1.1) rotate(2deg);
        filter: blur(2px);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes morphSubtitle {
    0% {
        transform: translateX(-100px) skewX(-10deg);
        opacity: 0;
    }
    60% {
        transform: translateX(10px) skewX(5deg);
    }
    100% {
        transform: translateX(0) skewX(0deg);
        opacity: 1;
    }
}

@keyframes morphText {
    0% {
        transform: translateY(50px) rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes morphCard {
    0% {
        transform: perspective(1000px) rotateY(-45deg) translateZ(-100px);
        opacity: 0;
    }
    50% {
        transform: perspective(1000px) rotateY(10deg) translateZ(-20px);
    }
    100% {
        transform: perspective(1000px) rotateY(0deg) translateZ(0px);
        opacity: 1;
    }
}

/* Section Styles */
.section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--surface-dark);
}

.section:nth-child(odd) {
    background: var(--background-dark);
}

/* Portfolio Section */
.portfolio-section {
    background: var(--gradient-dark);
}

.service-card, .news-card, .media-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all var(--transition-morph);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.service-card:hover, .news-card:hover, .media-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-morph);
    margin: 0 auto;
    display: block;
}

.card-image:hover img {
    transform: scale(1.1) rotate(2deg);
}

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content .title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.card-content p {
    color: var(--text-secondary);
    flex-grow: 1;
}

/* Progress Indicators */
.progress-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.progress::-webkit-progress-value {
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: all var(--transition-slow);
}

.progress::-moz-progress-bar {
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* News Section */
.news-section {
    background: var(--surface-dark);
}

.news-card .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Media Section */
.media-section {
    background: var(--background-darker);
}

/* Resources Section */
.resources-section {
    background: var(--surface-darker);
    padding: var(--spacing-xl) 0;
}

.resource-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all var(--transition-normal);
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
}

.resource-card .title a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.resource-card .title a:hover {
    color: var(--accent-color);
}

/* Behind the Scenes Section */
.behind-scenes-section {
    background: var(--gradient-dark);
    overflow: hidden;
}

.behind-scenes-section .image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-morph);
}

.behind-scenes-section .image:hover img {
    transform: scale(1.05) rotate(-2deg);
}

/* Contact Section */
.contact-section {
    background: var(--surface-dark);
}

.contact-form-card, .contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.contact-form .field {
    margin-bottom: var(--spacing-md);
}

.contact-form .label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.contact-form .input, .contact-form .textarea, .contact-form .select select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.contact-form .input:focus, .contact-form .textarea:focus, .contact-form .select select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form .input::placeholder, .contact-form .textarea::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer-section {
    background: var(--background-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
    margin-right: var(--spacing-sm);
    padding: var(--spacing-xs);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: var(--text-primary);
    background: var(--gradient-primary);
    transform: translateY(-2px);
}

.footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-lg) 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
}

.modal.is-active {
    display: flex;
}

.modal-background {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-card {
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    animation: morphCard 0.5s ease-out;
}

.modal-card-head {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: var(--spacing-md);
}

.modal-card-body {
    padding: var(--spacing-lg);
    color: var(--text-secondary);
}

.modal-card-foot {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
}

/* Success Page Styles */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    padding: var(--spacing-lg);
}

.success-content {
    text-align: center;
    max-width: 600px;
    padding: var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    animation: morphCard 1s ease-out;
}

/* Page Content Styles */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--background-dark);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-secondary);
}

.content-container h1, .content-container h2, .content-container h3 {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-menu {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .hero-section {
        background-attachment: scroll;
        text-align: center;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .card-content {
        padding: var(--spacing-sm);
    }
    
    .buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .success-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }
    
    .content-container {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-section .title {
        font-size: 2rem;
    }
    
    .hero-section .subtitle {
        font-size: 1.25rem;
    }
    
    .btn, button, .button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* Read More Links */
.read-more {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all var(--transition-normal);
}

.read-more::after {
    content: ' →';
    transition: transform var(--transition-normal);
}

.read-more:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.shadow-glow {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.transform-hover {
    transition: transform var(--transition-normal);
}

.transform-hover:hover {
    transform: translateY(-5px);
}