/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Poppins:wght@500;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #f43f5e;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-3d: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --text-main: #334155;
    --text-light: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(244, 63, 94, 0.1) 0%, transparent 20%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* 3D & Modern Utilities */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.card-3d {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 55px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transition: 0.3s;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    background: transparent;
    color: var(--primary) !important;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary);
    color: white !important;
}

.btn-admin {
    background: var(--dark);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Cube */
.cube-wrapper {
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 15s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(37, 99, 235, 0.05);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(5px);
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes spin {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Sections */
section {
    padding: 5rem 5%;
}

.page-header {
    padding: 8rem 5% 4rem;
    text-align: center;
    background: linear-gradient(to bottom, #eff6ff, #f8fafc);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Stats */
.stats-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    background: white;
    padding: 4rem 5%;
    margin: 2rem 5%;
    border-radius: 20px;
    box-shadow: var(--shadow-3d);
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: #eff6ff;
    padding: 1rem;
    border-radius: 12px;
    display: inline-block;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.read-more:hover {
    transform: translateX(5px);
}

/* Industries */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    transition: 0.3s;
}

.industry-card:hover {
    transform: translateY(-5px);
    background: white;
    border-color: var(--primary);
}

/* Jobs */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--primary);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: #eff6ff;
    padding: 12px;
    border-radius: 12px;
}

.contact-info-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

/* Footer */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 4rem 5% 2rem;
    background: var(--dark);
    color: #cbd5e1;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    background: #020617;
    color: #64748b;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Admin */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.sidebar {
    width: 260px;
    background: var(--dark);
    color: white;
    padding: 2rem;
    position: fixed;
    height: 100%;
    left: 0;
    top: 80px;
}

.sidebar ul li {
    margin-bottom: 1rem;
}

.sidebar a {
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
    width: 100%;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Spacer */
.spacer {
    height: 80px;
}

/* Form Group */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Responsive Utilities */
.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.text-center {
    text-align: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Stat Card */
.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        padding-top: 2rem;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        padding-right: 0;
        margin-top: 2rem;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 4rem 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        display: flex;
        overflow-x: auto;
        padding: 1rem;
    }

    .sidebar ul {
        display: flex;
        gap: 1rem;
    }

    .main-content {
        margin-left: 0;
    }

    .cube {
        width: 150px;
        height: 150px;
    }

    .cube-face {
        width: 150px;
        height: 150px;
        font-size: 1.5rem;
    }

    .front {
        transform: rotateY(0deg) translateZ(75px);
    }

    .right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }

    /* Contact Grid Responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Industries Grid */
    .industries-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    /* Section Padding */
    section {
        padding: 3rem 5%;
    }

    .page-header {
        padding: 6rem 5% 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Stats Section */
    .stats-section {
        margin: 1rem 5%;
        padding: 2rem 5%;
    }

    .stat-item h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    /* Header adjustments */
    header {
        padding: 0.5rem 3%;
    }

    .logo-container img {
        height: 45px;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    /* Form Groups - Stack on Mobile */
    .form-group {
        margin-bottom: 1rem;
    }

    /* Buttons */
    .btn,
    .btn-outline {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Card Padding */
    .card-3d {
        padding: 1.5rem;
    }

    .glass-panel {
        padding: 1.5rem !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 5% 1.5rem;
    }

    /* Dashboard Stats */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    /* Job Cards */
    .job-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .stats-section {
        padding: 2rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Hero adjustments */
    .hero {
        min-height: 80vh;
        padding: 1rem 5%;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn,
    .hero-btns .btn-outline {
        width: 100%;
        text-align: center;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
    }

    /* Service Icons */
    .service-icon {
        font-size: 2rem;
        padding: 0.8rem;
    }

    /* Contact Info Items */
    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Industries Display */
    .industries-grid {
        grid-template-columns: 1fr;
    }

    /* Stat Items */
    .stat-item {
        min-width: 100%;
    }

    .stat-item h2 {
        font-size: 2rem;
    }

    /* Forms - Single Column */
    section form>div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* All inline grid styles - force single column on mobile */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
    }

    /* Flex containers - stack vertically */
    div[style*="display: flex"][style*="gap"] {
        flex-wrap: wrap !important;
    }

    /* Page Header */
    .page-header {
        padding: 5rem 5% 2.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Footer */
    .footer-col {
        text-align: center;
    }

    /* Cube */
    .cube {
        width: 120px;
        height: 120px;
    }

    .cube-face {
        width: 120px;
        height: 120px;
        font-size: 1.2rem;
    }

    .front {
        transform: rotateY(0deg) translateZ(60px);
    }

    .right {
        transform: rotateY(90deg) translateZ(60px);
    }

    .back {
        transform: rotateY(180deg) translateZ(60px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(60px);
    }

    .top {
        transform: rotateX(90deg) translateZ(60px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(60px);
    }

    /* Hero Visual */
    .hero-visual {
        height: 300px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 0.5rem 2%;
    }

    .logo-container img {
        height: 40px;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn,
    .btn-outline {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .card-3d {
        padding: 1rem;
    }

    .glass-panel {
        padding: 1rem !important;
    }

    section {
        padding: 2rem 3%;
    }

    .page-header {
        padding: 4rem 3% 2rem;
    }

    .service-icon {
        font-size: 1.8rem;
        padding: 0.6rem;
    }

    .stat-item h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        padding: 2rem 3% 1rem;
    }

    /* Reduce spacing */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    /* Testimonials */
    .glass-panel img[style*="border-radius: 50%"] {
        width: 50px !important;
        height: 50px !important;
    }

    /* Office Images */
    section img[style*="height: 400px"],
    section img[style*="height: 350px"] {
        height: 250px !important;
    }

    /* Team Photos */
    img[style*="width: 150px"][style*="border-radius: 50%"] {
        width: 120px !important;
        height: 120px !important;
    }

    /* Timeline Sections */
    div[style*="border-left: 3px solid"] {
        padding-left: 1rem !important;
    }

    /* CTA Sections */
    section[style*="padding: 5rem 5%"] {
        padding: 3rem 3% !important;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 5%;
    }

    .nav-links {
        height: 100vh;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {

    header,
    footer,
    .mobile-toggle,
    .btn,
    .btn-outline {
        display: none;
    }

    body {
        background: white;
    }

    .glass-panel,
    .card-3d {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* Page Header with Background */
.page-header {
    background: linear-gradient(rgba(37, 99, 235, 0.85), rgba(30, 64, 175, 0.85)), url('images/header-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 5rem 5%;
    margin-bottom: 0;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .job-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .stats-section {
        padding: 2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Job Search Form */
    .job-search-form {
        grid-template-columns: 1fr !important;
    }

    .job-search-form .btn {
        width: 100%;
    }
}