/* Base Styles */
:root {
    --primary: #0a1f3a;
    --accent: #4a90e2;
    --light-text: rgba(255, 255, 255, 0.7);
    --dark-bg: #05101c;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--dark-bg); color: white; line-height: 1.6; overflow-x: hidden; }

/* Preloader & Main Content Visibility */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--dark-bg); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.75s ease, visibility 0.75s ease; }
.preloader-logo { width: 150px; animation: logoZoom 1.2s ease-in-out; }
@keyframes logoZoom { 
    0% { transform: scale(0.5); opacity: 0; } 
    50% { transform: scale(1.1); } 
    100% { transform: scale(1); opacity: 1; } 
}
#preloader.fade-out { opacity: 0; visibility: hidden; }
#main-content { visibility: hidden; opacity: 0; transition: opacity 0.5s ease; }
#main-content.visible { visibility: visible; opacity: 1; }

/* General Elements */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
section { padding: 100px 0; position: relative; overflow: hidden; }
h2 { font-size: 3rem; text-align: center; margin-bottom: 60px; position: relative; animation: fadeInScale 0.6s ease-out; }
h2:after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 100px; height: 4px; background: var(--accent); border-radius: 2px; }

.btn { display: inline-block; padding: 15px 35px; background: var(--accent); color: white; border: none; border-radius: 50px; cursor: pointer; font-size: 1.1rem; font-weight: 600; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3); }
.btn:hover { background: #3a7bc8; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: white; }

/* Header & Navbar */
header { background-color: rgba(5, 16, 28, 0.8); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; transition: all 0.3s ease; }
header.scrolled { background-color: rgba(10, 31, 58, 0.9); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0; }
.logo-img { height: 110px; width: auto; }
.nav-links { display: flex; align-items: center; list-style: none; gap: 40px; }
.nav-links a { text-decoration: none; color: white; font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 25px; }

/* Desktop Search */
#desktop-search { display: flex; align-items: center; background: rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 8px; border: 1px solid transparent; transition: all 0.4s ease; }
#desktop-search #desktop-search-input { background: transparent; border: none; color: white; outline: none; width: 0; padding: 0; opacity: 0; transition: all 0.4s ease; }
#desktop-search #search-icon { color: white; cursor: pointer; font-size: 1rem; padding: 0 4px; }
#desktop-search.active { border-color: var(--accent); }
#desktop-search.active #desktop-search-input { width: 180px; opacity: 1; padding: 0 10px 0 5px; }

.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; }
.mobile-search-container { display: none; }

/* Hero Section */
.hero { padding: 200px 0 150px; text-align: center; }
.hero h1 { font-size: 4rem; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }

/* Tabs / Filter Buttons */
.section-tabs { display: flex; justify-content: center; margin-bottom: 50px; flex-wrap: wrap; gap: 15px; }
.tab { padding: 12px 30px; background: rgba(255, 255, 255, 0.1); border-radius: 50px; cursor: pointer; transition: all 0.3s; font-weight: 500; position: relative; overflow: hidden; }
.tab::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transform: translate(-50%, -50%); transition: width 0.5s, height 0.5s; }
.tab:hover::before { width: 300px; height: 300px; }
.tab.active, .tab:hover { background: var(--accent); color: white; }

/* Cards & Sections */
.projects-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 20px; justify-items: center; }
.testimonial-grid, .contact-info { display: grid; gap: 30px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 20px; }
.project-card, .testimonial-card, .contact-item { background: rgba(255, 255, 255, 0.08); border-radius: 15px; transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease; border: 1px solid rgba(255, 255, 255, 0.1); padding: 30px; min-height: 200px; width: 100%; max-width: 400px; }

/* Video Card Styles */
.video-card { padding: 0; overflow: hidden; }
.video-card video { width: 100%; height: 200px; object-fit: cover; border-radius: 15px 15px 0 0; background: #000; transition: transform 0.3s ease; }
.video-card:hover video { transform: scale(1.05); }
.video-card h4, .video-card p { padding: 0 30px; }
.video-card h4 { margin-top: 20px; }
.video-card p { padding-bottom: 30px; }

/* Animation Styles */
.animated-hero { animation: hero-animation 1s ease-out 0.5s backwards; }
@keyframes hero-animation { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.project-card:hover, .testimonial-card:hover, .contact-item:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }
.project-card.hide { display: none; }

/* Testimonial Card Effects */
.client-avatar { width: 60px; height: 60px; background: linear-gradient(135deg, var(--accent), #6b5dd3); border-radius: 50%; margin-right: 15px; transition: all 0.3s ease; }
.testimonial-card:hover .client-avatar { transform: scale(1.1) rotate(5deg); box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4); }
.client-info { display: flex; align-items: center; margin-bottom: 20px; }

/* Subtle Page Effects */
section::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scan 8s linear infinite; z-index: 1; }
@keyframes scan { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Search Functionality Styles */
#no-results-message { text-align: center; font-size: 1.2rem; color: var(--light-text); margin-top: 40px; }
.hidden { display: none !important; }

/* Contact, Social, Footer */
.contact-icon { width: 80px; height: 80px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; transition: all 0.3s ease; }
.contact-item:hover .contact-icon { transform: rotate(360deg) scale(1.1); background: #3a7bc8; }
.social-links { display: flex; justify-content: center; gap: 25px; margin-top: 40px; }
.social-link { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; color: white; font-size: 1.8rem; text-decoration: none; transition: all 0.3s ease; position: relative; }
.social-link::after { content: ''; position: absolute; width: 100%; height: 100%; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; transform: scale(0.8); transition: all 0.3s ease; }
.social-link:hover::after { opacity: 1; transform: scale(1.2); }
.social-link:hover { background: var(--accent); transform: translateY(-5px); }
.contact-item a { color: var(--accent); text-decoration: none; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-column { flex: 1; min-width: 250px; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: var(--light-text); text-decoration: none; }
.copyright { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

/* Responsive Styles */
@media (max-width: 1024px) {
    #desktop-search { display: none; }
    .menu-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--dark-bg); padding: 20px 0; gap: 0; }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; text-align: center; width: 100%; }
    .mobile-search-container { display: block; padding: 0 10%; margin-bottom: 20px; }
    .mobile-search-container .search-container { background: rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 12px 20px; width: 100%; display: flex; }
    .mobile-search-container input { border: none; background: transparent; outline: none; color: white; width: 100%; font-size: 1rem; }
}

@media (max-width: 768px) {
    .logo-img { height: 80px; }
}