/* --- 
Theme: WebHouse TechnoCare (Advanced Tech)
Style: Modern, Clean, Interactive
--- */

:root {
    /* Color Palette - Advanced System */
    --primary: #00796B;       /* Primary Teal */
    --primary-dark: #004D40;  /* Deep Teal */
    --primary-light: #E0F2F1; /* Light Teal */
    --accent: #FFD700;        /* Gold Accent for subtle highlights */
    
    --text-main: #1e293b;     /* Slate 800 */
    --text-light: #64748b;    /* Slate 500 */
    --bg-body: #F0F4F8;       /* Very subtle blue-grey */
    --bg-white: #ffffff;
    
    --gradient-main: linear-gradient(135deg, #00796B 0%, #26A69A 100%);
    --gradient-text: linear-gradient(135deg, #004D40 0%, #00796B 100%);
    
    /* Shadows & Glass */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --backdrop-blur: blur(12px);
}

/* --- Global Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* --- Typography Enhancements --- */
h1, h2, h3, h4 {
    color: var(--primary-dark);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 3.5rem; 
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

h2 { 
    font-size: 2.5rem; 
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
/* Underline effect for H2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    margin-top: 10px;
    border-radius: 2px;
}

p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* --- Buttons (Advanced) --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    color: white;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 121, 107, 0.3);
}

/* Button Shine Effect */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}
.cta-button:hover::before {
    left: 100%;
}

/* --- Header & Navigation (Glassmorphism) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjusted for sticky header */
    width: auto;
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: rotate(-5deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--primary);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* --- Hero Section (Placeholder for Index) --- */
.hero {
    padding: 180px 0 100px 0; /* Extra top padding for fixed header */
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(224, 242, 241, 0.5) 0%, rgba(240, 244, 248, 0) 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Advanced Service Cards (3D Tilt Ready) --- */
.services {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hover State for Cards */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

/* Decorative circle in background of cards */
.service-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.5;
    transition: 0.5s ease;
    z-index: -1;
}

.service-card:hover::before {
    transform: scale(1.5);
    opacity: 0.2;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding-left: 25px;
    margin-bottom: 12px;
    position: relative;
    color: var(--text-light);
    font-weight: 500;
}

.service-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    transition: margin-left 0.3s ease;
}

.service-card:hover li::before {
    margin-left: 5px; /* Arrow movement on hover */
}

/* --- Forms (Glassmorphism inputs) --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Form is wider */
    gap: 60px;
    margin-top: 60px;
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 121, 107, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-dark);
    color: var(--primary-light);
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 80px;
}

footer p {
    color: rgba(255,255,255,0.7);
}

/* --- Animation Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}