/* 
  Theme: Dark, High-Tech & Premium
  Colors: Deep Space Black, Electric Blue/Cyan, Neon Accents 
*/

:root {
    --bg-main: #07070a; /* Very deep dark blue/black */
    --bg-alt: #0a0a0f;
    --bg-card: rgba(18, 18, 25, 0.6);
    --bg-card-hover: rgba(25, 25, 35, 0.85);
    
    --text-main: #f0f0f5;
    --text-muted: #9494a0;
    
    --primary: #00e5ff; /* Electric Cyan */
    --primary-glow: rgba(0, 229, 255, 0.35);
    --secondary: #2979ff; /* Deep Blue */
    --accent: #d500f9; /* Neon Purple for contrast */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 229, 255, 0.25);
    
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

/* Typography elements */
h1, h2, h3, h4, .logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-display);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(25, 25, 35, 0.4);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    /* Convert image to blue using filter chain */
    filter: brightness(0) invert(1) sepia(100%) saturate(500%) hue-rotate(180deg) brightness(1.2); 
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.logo-text {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-text .highlight {
    font-weight: 300;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--border-highlight);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Abstract Visual & Media */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    position: relative;
    perspective: 1000px;
}

.hero-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.2);
    animation: floatImage 6s ease-in-out infinite alternate;
}

@keyframes floatImage {
    0% { transform: translateY(0) scale(1.0); }
    100% { transform: translateY(-15px) scale(1.02); }
}

.abstract-shape {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 229, 255, 0.02);
    backdrop-filter: blur(2px);
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-top-color: var(--primary);
    animation: spin 20s linear infinite;
    transform: rotateX(60deg) rotateY(20deg);
}

.ring-2 {
    width: 75%;
    height: 75%;
    border-right-color: var(--secondary);
    animation: spin-reverse 15s linear infinite;
    transform: rotateX(70deg) rotateY(-20deg);
}

.ring-3 {
    width: 50%;
    height: 50%;
    border-bottom-color: var(--accent);
    animation: spin 10s linear infinite;
    transform: rotateX(50deg) rotateY(40deg);
}

.core {
    width: 25%;
    height: 25%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    box-shadow: 0 0 40px var(--primary-glow);
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes spin {
    to { transform: rotateX(60deg) rotateY(20deg) rotateZ(360deg); }
}

@keyframes spin-reverse {
    to { transform: rotateX(70deg) rotateY(-20deg) rotateZ(-360deg); }
}

@keyframes pulse {
    from { transform: scale(0.9); box-shadow: 0 0 20px var(--primary-glow); }
    to { transform: scale(1.1); box-shadow: 0 0 50px var(--primary-glow); }
}

/* Services */
.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition);
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.service-card:hover .card-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-card:hover .card-link {
    gap: 10px;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.03), transparent);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Management Philosophy */
.management-philosophy {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.phi-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.phi-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background: rgba(0, 229, 255, 0.05);
}

.phi-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.phi-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.phi-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* History Timeline */
.about-history {
    flex: 1;
    min-width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.subsection-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.timeline {
    list-style: none;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 25px;
}

.timeline li::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline .time {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.timeline .desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.timeline .desc strong {
    color: #fff;
    font-weight: 600;
}

/* Certifications Section */
.certifications {
    padding: 100px 24px;
    background: #07070a;
}

.cert-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.cert-text {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cert-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cert-item:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(10px);
}

.cert-icon {
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.cert-info h3 {
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.cert-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cert-gallery {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.cert-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.cert-img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.2);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 24px;
    background: var(--bg-alt);
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.portfolio-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    color: var(--accent);
}

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

.port-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 24px;
    border-radius: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.port-item:hover {
    border-color: var(--secondary);
    background: rgba(41, 121, 255, 0.05);
    transform: translateY(-5px);
}

.port-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.port-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.port-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.port-item p strong {
    color: #e0e0e0;
}

/* Contact */
.contact {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 24px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.contact-info {
    flex: 1;
    padding: 50px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(41, 121, 255, 0.03));
    border-right: 1px solid var(--border-color);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--text-main);
    font-weight: 500;
}

.contact-list i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    text-shadow: 0 0 5px var(--primary-glow);
}

.contact-form {
    flex: 1;
    padding: 50px;
    background: #0a0a0f;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: var(--transition);
}

input::placeholder, textarea::placeholder {
    color: #60606b;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.02);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    margin-top: 50px;
    background: #050508;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    /* Convert image to blue using filter chain with opacity */
    filter: brightness(0) invert(1) sepia(100%) saturate(500%) hue-rotate(180deg) brightness(1.2) opacity(0.7);
    transition: var(--transition);
}

.footer-logo-img:hover {
    filter: brightness(0) invert(1) sepia(100%) saturate(500%) hue-rotate(180deg) brightness(1.2) opacity(1);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations using GSAP or CSS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    .hero-content { margin-bottom: 60px; max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero h1 { font-size: 3.2rem; }
    
    .about-container, .cert-container { flex-direction: column; }
    
    .contact-card { flex-direction: column; }
    .contact-info, .contact-form { padding: 40px 30px; }
    .contact-info { border-right: none; border-bottom: 1px solid var(--border-color); }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Add JS for mobile menu later */
    .mobile-menu-btn { display: block; color: var(--text-main); }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-visual { display: none; }
    
    .section-title { font-size: 2rem; }
    
    .stats { flex-direction: column; gap: 20px; align-items: center; }
    
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}
