/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.logo .sigma {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
}

.logo .brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    max-width: 200px;
    height: auto;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 20px;
    color: #fff;
}

/* Terminal Status */
.terminal-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #4ade80;
    padding: 8px 20px;
    margin-bottom: 30px;
    font-family: 'Courier New', monospace;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.4; }
}

.status-text {
    color: #4ade80;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 20px;
    color: #fff;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    display: none;
}

.tagline {
    font-size: 1.5rem;
    color: #4ade80;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

.tagline::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #4ade80;
    margin-left: 5px;
    vertical-align: text-bottom;
    animation: cursor 1s infinite;
}

@keyframes cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* CTA Button */
.cta-button {
    padding: 15px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button.large {
    padding: 20px 60px;
    font-size: 1.2rem;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
}

.button-glow {
    display: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Section Styles */
section {
    padding: 100px 50px;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #4ade80;
}

/* Services Section */
.services {
    background: rgba(0, 0, 0, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(74, 222, 128, 0.03);
    border-color: rgba(74, 222, 128, 0.3);
}

.card-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.card-icon svg {
    transition: all 0.3s ease;
}

.service-card:hover .card-icon svg {
    stroke: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #4ade80;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* About Section */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4ade80;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Network Animation */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.network-animation {
    width: 300px;
    height: 300px;
    position: relative;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.node-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #fff;
}

.node-1 { top: 10%; left: 50%; animation-delay: 0s; }
.node-2 { top: 50%; right: 10%; animation-delay: 0.5s; }
.node-3 { bottom: 10%; left: 50%; animation-delay: 1s; }
.node-4 { top: 50%; left: 10%; animation-delay: 1.5s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.network-animation::before,
.network-animation::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    height: 1px;
}

.network-animation::before {
    top: 50%;
    left: 10%;
    right: 10%;
}

.network-animation::after {
    width: 1px;
    height: auto;
    top: 10%;
    bottom: 10%;
    left: 50%;
    background: rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 150px 50px;
}

/* Certifications Section */
.certifications {
    padding: 100px 50px;
    background: rgba(0, 0, 0, 0.3);
}

.cert-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-item {
    width: 160px;
    height: 160px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.05);
}

.cert-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(74, 222, 128, 0.05);
    box-shadow: 0 20px 40px rgba(74, 222, 128, 0.15);
}

.cert-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: all 0.4s ease;
}

.cert-item:hover img {
    filter: grayscale(0%) drop-shadow(0 0 15px rgba(74, 222, 128, 0.4));
}

.cert-hint {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: rgba(74, 222, 128, 0.5);
    font-family: 'Courier New', monospace;
}

/* Certification Modal */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.cert-modal.show {
    display: flex;
}

.cert-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cert-modal.show .cert-modal-overlay {
    opacity: 1;
}

.cert-modal-content {
    position: relative;
    z-index: 1;
    width: 380px;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
    border: 2px solid #4ade80;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    box-shadow: 
        0 0 60px rgba(74, 222, 128, 0.3),
        inset 0 0 40px rgba(74, 222, 128, 0.05);
    transform: scale(0.5) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-modal.show .cert-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cert-modal.closing .cert-modal-content {
    transform: scale(0.8) translateY(-30px);
    opacity: 0;
    transition: all 0.3s ease-in;
}

.cert-modal.closing .cert-modal-overlay {
    opacity: 0;
}

.cert-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(74, 222, 128, 0.5);
    background: #000;
    font-size: 22px;
    color: #4ade80;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    z-index: 10;
}

.cert-modal-close:hover {
    background: #4ade80;
    color: #000;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
}

.cert-modal-image {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(74, 222, 128, 0.4));
}

.cert-modal-info {
    text-align: center;
}

.cert-modal-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

.cert-modal-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Courier New', monospace;
}

/* Hide old card elements */
.cert-modal-card,
.cert-modal-front,
.cert-modal-back {
    display: none;
}

.contact-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #fff;
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.modal-content > p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: #000;
    margin: 0 auto 20px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.form-success h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin-bottom: 10px;
}

.form-success p {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 30px 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
}

.footer-logo .sigma {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.footer-logo .brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.footer p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .tagline {
        font-size: 1rem;
    }

    section {
        padding: 80px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        padding: 30px 20px;
    }
}
