/* Base Styles */
:root {
    /* Core Colors */
    --seasalt: #f8f9fa;
    --antiflash-white: #e9ecef;
    --platinum: #dee2e6;
    --french-gray: #ced4da;
    --french-gray-2: #adb5bd;
    --slate-gray: #6c757d;
    --outer-space: #495057;
    --onyx: #343a40;
    --eerie-black: #212529;
    
    /* Functional Colors */
    --bg-primary: var(--seasalt);
    --bg-secondary: var(--antiflash-white);
    --card-bg: var(--platinum);
    --border-color: var(--french-gray);
    --text-muted: var(--french-gray-2);
    --text-body: var(--slate-gray);
    --text-heading: var(--outer-space);
    --text-emphasis: var(--onyx);
    --overlay-dark: var(--eerie-black);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Height of fixed navbar */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

.subtitle {
    color: var(--outer-space);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Cards & Glass Effect */
.glass {
    background: rgba(248, 249, 250, 0.7);
    border: 1px solid var(--french-gray);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, transparent, rgba(73, 80, 87, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Buttons */
.btn {
    position: relative;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.btn-primary {
    background: var(--outer-space);
    color: var(--seasalt);
    border: none;
    box-shadow: 0 4px 15px rgba(73, 80, 87, 0.15);
}

.btn-primary::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: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--onyx);
    box-shadow: 0 6px 20px rgba(73, 80, 87, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--outer-space);
    color: var(--outer-space);
    transition: all 0.4s ease;
}

.btn-outline:hover {
    background: var(--outer-space);
    color: var(--seasalt);
    border-color: var(--outer-space);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(73, 80, 87, 0.15);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Button pulse animation for primary CTA */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--outer-space);
    border-radius: inherit;
    opacity: 0.12;
    z-index: -1;
    animation: pulse-border 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-border {
    0%, 100% { transform: scale(1); opacity: 0.12; }
    50% { transform: scale(1.1); opacity: 0; }
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-svg {
    animation: float 6s ease-in-out infinite;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--onyx);
    text-decoration: none;
}

.logo-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
    background: var(--outer-space);
}

.nav-cta {
    margin-left: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--onyx);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--seasalt), var(--antiflash-white));
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 1.5rem 0;
}

.highlight {
    background: linear-gradient(120deg, var(--outer-space), var(--onyx));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--antiflash-white);
    border: 1px solid var(--platinum);
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--slate-gray);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--outer-space);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-gray);
}

/* Hero SVG Animations */
.hero-illustration {
    width: 100%;
    height: auto;
}

.floating-circle {
    fill: rgba(73, 80, 87, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-path {
    stroke: var(--outer-space);
    stroke-width: 2;
    fill: none;
    animation: draw 3s ease-out forwards;
}

.floating-square {
    fill: rgba(73, 80, 87, 0.1);
    animation: rotate 10s linear infinite;
}

.floating-dots circle {
    fill: var(--outer-space);
    opacity: 0.5;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes draw {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

/* IT-themed SVG Animations */
.circuit-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-out forwards;
}

.circuit-node {
    fill: var(--outer-space);
    animation: pulse 2s infinite;
}

.floating-icon {
    animation: float 4s ease-in-out infinite;
}

.tech-grid .grid-line {
    opacity: 0.2;
}

.connected-nodes .node {
    fill: var(--outer-space);
    animation: pulse 2s infinite;
}

.connected-nodes .connection {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Features Section */
.features {
    background: linear-gradient(170deg, var(--seasalt) 0%, var(--antiflash-white) 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(67, 97, 238, 0.05), transparent 50%);
    pointer-events: none;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, transparent, rgba(67, 97, 238, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--outer-space), var(--onyx));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: white;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, var(--outer-space), var(--onyx));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card p {
    color: var(--slate-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    position: relative;
    background: linear-gradient(170deg, var(--seasalt) 0%, var(--antiflash-white) 100%);
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--platinum) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.about-content {
    position: relative;
    z-index: 2;
}

.checklist {
    list-style: none;
    margin: 2rem 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-body);
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--platinum);
    border: 2px solid var(--outer-space);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.checklist li:hover::before {
    transform: scale(1.2);
    background: var(--outer-space);
}

.about-image {
    position: relative;
    padding: 2rem;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--french-gray);
    border-radius: 1rem;
    transform: rotate(-2deg);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--french-gray);
    border-radius: 1rem;
    transform: rotate(2deg);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.exp-item {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.exp-item:hover {
    transform: translateY(-5px);
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--outer-space);
    margin-bottom: 0.5rem;
}

.exp-label {
    color: var(--text-body);
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(170deg, var(--seasalt) 0%, var(--antiflash-white) 100%);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.info-card {
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 48px;
    height: 48px;
    color: var(--outer-space);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.info-card p {
    color: var(--text-body);
    line-height: 1.6;
}

.contact-form {
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 1rem;
}

/* Enhanced Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--antiflash-white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: var(--seasalt);
    box-shadow: var(--shadow-md);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--outer-space);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--seasalt);
}

.info-content h3 {
    color: var(--onyx);
    margin-bottom: 0.5rem;
}

.info-content p {
    margin: 0;
}

.info-content a {
    color: var(--slate-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--outer-space);
}

.info-content a[href^="mailto"] {
    color: var(--outer-space);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.info-content a[href^="mailto"]:hover {
    color: var(--onyx);
}

.info-content a[href^="mailto"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--outer-space);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.info-content a[href^="mailto"]:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--antiflash-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    color: var(--outer-space);
}

.social-icon:hover {
    background: var(--outer-space);
    transform: translateY(-3px);
}

.social-icon:hover svg {
    color: var(--seasalt);
}

.contact-form {
    padding: 3rem;
    background: var(--seasalt);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h3 {
    color: var(--onyx);
    margin-bottom: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Footer Styles */
.footer {
    background: var(--eerie-black);
    color: var(--french-gray-2);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--seasalt);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--french-gray-2);
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--seasalt);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--french-gray-2);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--seasalt);
}

.footer-contact a {
    color: var(--french-gray-2);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-contact a:hover {
    color: var(--seasalt);
}

.footer-contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--french-gray-2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-contact a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--french-gray-2);
    stroke-width: 2;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--onyx);
    text-align: center;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--seasalt);
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .features .grid-3 {
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .feature-icon {
        width: 28px;
        height: 28px;
    }
}

/* Responsive About Section */
@media (max-width: 768px) {
    .about::before {
        width: 300px;
        height: 300px;
    }
    
    .about-image {
        margin-top: 3rem;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Responsive Contact Section */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Address Styles */
.address-details {
    font-style: normal;
    color: var(--slate-gray);
    line-height: 1.6;
    text-transform: capitalize;
}

.address-details p {
    margin: 0.25rem 0;
}

.location-name {
    font-weight: 600;
    color: var(--outer-space);
    letter-spacing: 0.5px;
}

.building {
    color: var(--slate-gray);
}

.street {
    color: var(--slate-gray);
}

.city {
    color: var(--outer-space);
    font-weight: 500;
}

.phone-link {
    color: var(--outer-space);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.phone-link:hover {
    color: var(--onyx);
}

.phone-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--outer-space);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.phone-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
