/* Premium Homepage Styles for HawkDevOps */

/* Typography & Variables Overlay */
:root {
    --premium-dark-bg: #050505;
    --premium-dark-surface: #141414;
    --premium-light-bg: #ffffff;
    --premium-light-surface: #f8fafc;
    --premium-accent: #ec1927;
    /* HawkDevOps Red */
    --premium-accent-hover: #ef2429;
    --premium-text-dark: #f3f4f6;
    --premium-text-light: #9ca3af;
    --premium-shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --premium-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --premium-shadow-dark: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    --premium-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Sections Base */
.light-section {
    background-color: var(--premium-light-bg);
    color: var(--text-primary);
    padding: 100px 0;
}

.dark-section {
    background-color: var(--premium-dark-bg);
    color: var(--premium-text-dark);
    padding: 100px 0;
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
    color: #ffffff;
}

.dark-section p {
    color: var(--premium-text-light);
}

/* Buttons Override */
.btn-primary {
    background: var(--premium-accent);
    color: white;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 600;
    transition: var(--premium-transition);
    border: 1px solid transparent;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--premium-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(236, 25, 39, 0.5);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 600;
    transition: var(--premium-transition);
    display: inline-block;
    text-decoration: none;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Hero Section */
.hero.dark-section {
    position: relative;
    overflow: hidden;
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    filter: blur(100px);
    opacity: 0.3;
    border-radius: 50%;
}

.hero-bg-shapes .shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #ec1927;
}

.hero-bg-shapes .shape-2 {
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #8b0000;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-text .highlight {
    background: linear-gradient(to right, #ec1927, #ff4b4b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
}

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

.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.hero-image-wrapper img {
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: var(--premium-transition);
}

.hero-image-wrapper:hover img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(236, 25, 39, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    filter: blur(40px);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: var(--premium-light-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 3px solid transparent;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--premium-shadow-soft);
    transition: var(--premium-transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--premium-shadow-hover);
    border-color: rgba(236, 25, 39, 0.2);
    border-top-color: var(--premium-accent);
}

.service-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 100px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    z-index: -1;
    transition: var(--premium-transition);
    line-height: 1;
}

.service-card:hover .service-number {
    color: rgba(236, 25, 39, 0.05);
    transform: scale(1.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(236, 25, 39, 0.1);
    color: var(--premium-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    transition: var(--premium-transition);
}

.service-card:hover .service-icon {
    background: var(--premium-accent);
    color: white;
}

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

/* Products */
.product-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 80px;
}

.product-split.reverse {
    direction: rtl;
}

.product-split.reverse>* {
    direction: ltr;
}

.product-text h3 {
    font-size: 36px;
    margin-bottom: 20px;
}

.product-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #d1d5db;
}

.product-features li i {
    color: var(--premium-accent);
}

.product-visual img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--premium-shadow-dark);
}

/* Why Choose Us */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-block {
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--premium-light-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--premium-accent);
    margin: 0 auto 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), var(--premium-shadow-soft);
}

.feature-block h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-block p {
    color: var(--premium-text-light);
    /* Assuming light gray looks ok, override if needed */
    color: #64748b;
}

/* Portfolio */
.portfolio-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-card {
    background: var(--premium-light-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--premium-shadow-soft);
    cursor: pointer;
    transition: var(--premium-transition);
}

.portfolio-card:hover {
    box-shadow: var(--premium-shadow-hover);
    transform: translateY(-5px);
}

.portfolio-img-wrapper {
    overflow: hidden;
    height: 240px;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.08);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.portfolio-info p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* CTA Section */
.cta.gradient-bg {
    background: linear-gradient(135deg, #050505 0%, #211b1b 100%);
    position: relative;
    overflow: hidden;
}

.cta.gradient-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(236, 25, 39, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.cta-content h2 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Text Utility */
.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

/* Section Header tweaks for new sections */
.section-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    color: #64748b;
}

.dark-section .section-header p {
    color: var(--premium-text-light);
}

/* Fix navbar for transparent/dark sections */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .product-split,
    .product-split.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding-top: 120px;
    }
}

@media (max-width: 767px) {
    .hero-text h1 {
        font-size: 36px;
    }

    .product-text h3,
    .cta-content h2 {
        font-size: 28px;
    }

    .feature-grid,
    .portfolio-showcase,
    .services-grid {
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}