/* ---
Skyvertech - Master Stylesheet
--- */

/* --- Google Font: Poppins --- */
/*@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@100..900&display=swap');*/
/* === Hero Font: Local === */
/* === Remove the @import for Google Fonts === */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap'); */


/* === Hero Font: Local === */
@font-face {
    font-family: 'Hero';
    src: url('../font/Hero-Regular.ttf') format('truetype');
    font-weight: 400; /* Corresponds to normal */
    font-style: normal;
}

@font-face {
    font-family: 'Hero';
    src: url('../font/Hero-Bold.ttf') format('truetype');
    font-weight: 700; /* Corresponds to bold */
    font-style: normal;
}

@font-face {
    font-family: 'Hero';
    src: url('../font/Hero-Light.ttf') format('truetype');
    font-weight: 300; /* Corresponds to light */
    font-style: normal;
}


/* === Apply the new font across the site === */

/* 1. Update the root variable and set the default body font */
:root {
    --font-family: 'Hero', sans-serif;
    /* ... keep other variables ... */
}

body {
    font-family: var(--font-family);
    font-weight: 400; /* Use the regular weight by default */
}

/* 2. Apply bold weight to all headings */
h1, h2, h3, h4 {
    font-weight: 700;
}

/* 3. Apply bold weight to other key elements (like buttons, nav links, etc.) */
.btn,
.main-nav a,
.tech-item,
.footer-links h4,
.contact-info-item div p:first-child,
.form-group label {
    font-weight: 700;
}

/* 4. Ensure form inputs use the new font */
.form-group input, 
.form-group textarea {
    font-family: var(--font-family);
}


/* --- Global Variables & Base Styles --- */
:root {
    --background-color: #0D0D1A;
    --card-bg-color: #161A30;
    --primary-color: #F2855A; /* Orange from Logo */
    --secondary-color: #3A506B; /* Complementary Blue */
    --text-color: #F0F0F0;
    --text-muted-color: #A0A0B0;
    --header-bg-color: rgba(22, 26, 48, 0.8);
    --font-family: 'Hero', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* FIX: Added html selector to prevent horizontal scrolling on all devices */
html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
}

/* Prevents vertical scrolling when mobile nav is open */
body.nav-open {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
}

h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 32px; }
h2 .highlight { color: var(--primary-color); }

p {
    color: var(--text-muted-color);
    max-width: 600px;
    margin: 0 auto 20px auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blob-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Common Components --- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(242, 133, 90, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 133, 90, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-muted-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color);
}

/* Header */
.main-header {
    background-color: var(--header-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: var(--card-bg-color);
    padding: 50px 0;
    color: var(--text-muted-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.footer-about .logo {
    margin-bottom: 15px;
}

.footer-links h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links ul li a {
    color: var(--text-muted-color);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-links a {
    color: var(--text-muted-color);
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}


/* --- Mobile Navigation Styles --- */
.mobile-nav-toggle {
    display: none;
    position: relative;
    z-index: 9999;
    background: transparent;
    border: 0;
    padding: 0.5em;
    cursor: pointer;
}

.mobile-nav-toggle .hamburger {
    display: block;
    position: relative;
    width: 2em;
    height: 3px;
    background: var(--text-color);
    transition: transform 0.3s ease;
}

.mobile-nav-toggle .hamburger::before,
.mobile-nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--text-color);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.mobile-nav-toggle .hamburger::before {
    top: -8px;
}

.mobile-nav-toggle .hamburger::after {
    bottom: -8px;
}

/* Animate hamburger to X */
.nav-open .mobile-nav-toggle .hamburger {
    transform: rotate(45deg);
}

.nav-open .mobile-nav-toggle .hamburger::before {
    top: 0;
    transform: rotate(90deg);
}

.nav-open .mobile-nav-toggle .hamburger::after {
    bottom: 0;
    transform: rotate(90deg);
}


/* --- Page-Specific & Unique Component Styles --- */

/* Gradient Blobs (Homepage) */
.blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: blob-spin 20s linear infinite;
}

.blob1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--primary-color), transparent 60%);
}

.blob2 {
    width: 350px;
    height: 350px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, var(--secondary-color), transparent 60%);
    animation-delay: 5s;
}

/* Hero Section (Homepage) */
.hero {
    padding: 100px 0;
}

.hero h1 {
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 18px;
    animation: fadeIn 1s ease-out 0.2s;
    animation-fill-mode: backwards;
}

.hero .button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    animation: fadeIn 1s ease-out 0.4s;
    animation-fill-mode: backwards;
}

/* Service Cards (Homepage) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.service-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: conic-gradient(from 180deg at 50% 50%, var(--secondary-color), var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-content {
    position: relative;
    z-index: 2;
}

.service-card i {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    color: var(--text-muted-color);
}

.service-card ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.service-card ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px;
}

/* Technology List (Homepage) */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.tech-item {
    background-color: var(--card-bg-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Why Choose Us Section (Homepage) */
.why-choose {
    background-color: var(--card-bg-color);
}
.why-choose-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.why-choose-text { flex: 1; }
.why-choose-text ul { list-style: none; padding-left: 0; }
.why-choose-text ul li { margin-bottom: 15px; display: flex; align-items: flex-start; }
.why-choose-text ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 4px;
}

.why-choose-image { flex: 1; position: relative; }
.why-choose-image img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.transform-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--header-bg-color);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    max-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA Contact Grid (Homepage) */
.cta-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px auto;
}

.contact-item {
    background: var(--card-bg-color);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(45deg, var(--card-bg-color), #2a2e4d);
}

.contact-item i {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

/* Page Header (Services/Contact pages) */
.page-header {
    padding: 80px 0;
    background-color: var(--card-bg-color);
}

/* Detailed Services List (Services page) */
.service-detail-item {
    display: flex;
    gap: 40px;
    text-align: left;
    margin-bottom: 60px;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

.service-detail-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail-item .icon-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--card-bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.service-detail-item .icon-container i {
    font-size: 40px;
    color: var(--primary-color);
}

.service-detail-item .text-container h3 {
    font-size: 24px;
    color: var(--primary-color);
}

.service-detail-item .text-container p {
    max-width: 100%;
    margin-bottom: 15px;
}

.service-detail-item .text-container ul {
    list-style: none;
    padding-left: 0;
}

.service-detail-item .text-container ul li {
    margin-bottom: 10px;
}

.service-detail-item .text-container ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px;
}

/* CTA Section (Services page) */
.cta {
     background-color: var(--card-bg-color);
}

/* Contact Form & Info (Contact page) */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background-color: var(--card-bg-color);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info, .contact-form {
    flex: 1;
    text-align: left;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 50px;
    flex-shrink: 0;
}

.contact-info-item div p {
    margin: 0;
    max-width: 100%;
}

.contact-info-item div p:first-child {
    font-weight: 600;
    color: var(--text-color);
}

.contact-form h3 {
     font-size: 24px;
     color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--background-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .header-btn {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 0 0 0 30%;
        flex-direction: column;
        padding: min(20vh, 10rem) 2em;
        gap: 2em;
        
        background: hsl(228, 28%, 15%, 0.95);
        backdrop-filter: blur(1rem);

        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    .main-nav[data-visible="true"] {
        transform: translateX(0%);
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    .services-grid { grid-template-columns: 1fr; }
    .why-choose-content { flex-direction: column; }
    .transform-box { position: static; margin-top: 20px; max-width: 100%;}
    .cta-contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-about, .footer-links { margin-bottom: 30px; }
    .social-links { text-align: center; }
    .service-detail-item, .service-detail-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    .contact-wrapper { flex-direction: column; }
}
