/* 
* Defsen CyberTech Ltd - Main Stylesheet
* Version: 1.0
*/

/* ===== Base Styles ===== */
:root {
    /* Color Variables */
    --primary-color: #3182ce;
    --primary-dark: #2a4365;
    --secondary-color: #4fd1c5;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --gray-color: #718096;
    --danger-color: #e53e3e;
    --success-color: #38a169;
    
    /* Typography */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    margin-bottom: var(--spacing-xs);
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--gray-color);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1.6rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--heading-font);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-text {
    margin-right: 0.5rem;
}

.logo-highlight {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 10px;
    transition: all var(--transition-normal);
}

/* ===== Hero Section ===== */
.hero {
    padding: 15rem 0 10rem;
    background: linear-gradient(135deg, var(--light-color) 0%, #e6f7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.hero-content {
    flex: 1;
}

.hero-title {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
}

.hero-text {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--gray-color);
}

.hero-btns {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

/* ===== Services Section ===== */
.services {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.service-title {
    margin-bottom: var(--spacing-xs);
}

.service-description {
    color: var(--gray-color);
    margin-bottom: var(--spacing-sm);
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===== About Preview Section ===== */
.about-preview {
    padding: var(--spacing-xl) 0;
    background-color: #f1f5f9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.about-text {
    flex: 1;
}

.about-features {
    margin: var(--spacing-md) 0;
}

.about-features li {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
}

.about-features i {
    color: var(--success-color);
    margin-right: var(--spacing-xs);
}

.about-image {
    flex: 1;
    max-width: 500px;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.testimonial-slider {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-sm) 0;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.testimonial-card {
    flex: 0 0 calc(50% - var(--spacing-md));
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: var(--spacing-sm);
}

.testimonial-content p {
    font-style: italic;
    color: var(--dark-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* ===== CTA Section ===== */
.cta {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta p {
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-logo a {
    color: white;
    font-size: 2.4rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.footer-logo p {
    color: #a0aec0;
}

.footer-links-column h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}

.footer-links-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-links-column a {
    color: #a0aec0;
    transition: color var(--transition-fast);
}

.footer-links-column a:hover {
    color: white;
}

.footer-contact h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}

.footer-contact p {
    color: #a0aec0;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: var(--spacing-xs);
    width: 20px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background-color var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom p {
    margin-bottom: 0;
    color: #a0aec0;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-legal a {
    color: #a0aec0;
}

.footer-legal a:hover {
    color: white;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    html {
        font-size: 60%;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-features li {
        justify-content: center;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
        transition: left var(--transition-normal);
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}