@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary: #007AFF; /* Tech Blue */
    --bg-main: #f5f5f7; /* Soft Apple Grey */
    --bg-card: #ffffff; /* Pure White */
    --text-main: #1d1d1f; /* Deep Charcoal */
    --text-muted: #6e6e73; /* Medium Grey */
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(0, 0, 0, 0.03);
    --gradient: linear-gradient(135deg, #007AFF 0%, #00d4ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--text-main);
}

.logo-accent { color: var(--primary); }
.location { font-weight: 300; opacity: 0.6; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.9rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 20% 30%, #ffffff 0%, #f5f5f7 100%);
    padding: 0 8%;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /* Blue-tinted grid for light mode */
    background-image: linear-gradient(rgba(0,122,255,0.03) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(0,122,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    top: 0; left: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.badge {
    background: #e8e8ed;
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -2px;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

.btn-outline {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3); }


/* --- TECH STACK SECTION --- */
.tech-stack {
    padding: 100px 0;
    background-color: #f0f2f5; /* Matching our new light theme */
    text-align: center;
    overflow: hidden;
}

.tech-stack .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8%;
}

/* Marquee Container */
.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    position: relative;
}

.marquee {
    display: flex;
    user-select: none;
    overflow: hidden;
    gap: 20px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 20px;
    min-width: 100%;
}

/* --- Colorful Tech Cards --- */
.tech-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 16px 35px;
    border-radius: 100px; /* Pill shape for app-like look */
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #1d1d1f;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.tech-card i {
    font-size: 1.4rem;
}

/* Specific Brand Colors for Icons */
.fa-react { color: #61DAFB; }
.fa-layer-group { color: #000000; } /* Next.js */
.fa-figma { color: #F24E1E; }
.fa-node-js { color: #339933; }
.fa-bolt { color: #007AFF; } /* Vercel */
.fa-code { color: #3178C6; } /* TypeScript */
.fa-python { color: #3776AB; }
.fa-aws { color: #FF9900; }
.fa-docker { color: #2496ED; }
.fa-database { color: #47A248; } /* MongoDB */
.fa-server { color: #336791; } /* PostgreSQL */
.fa-github { color: #181717; }

.tech-card:hover {
    transform: scale(1.05);
    border-color: #007AFF;
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.15);
}

/* --- Animation Logic (MUST INCLUDE) --- */
.marquee-ltr .marquee-content {
    animation: scroll-ltr 30s linear infinite;
}

.marquee-rtl .marquee-content {
    animation: scroll-rtl 30s linear infinite;
}

@keyframes scroll-ltr {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes scroll-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Pause on hover for better UX */
.marquee:hover .marquee-content {
    animation-play-state: paused;
}
/* --- VIBRANT APP-LIKE SERVICES --- */
#hth-services {
    padding: 100px 8%;
    background: #f8f9fa; /* Ultra-clean light background */
}

#hth-services .hth-container {
    max-width: 1300px;
    margin: 0 auto;
}

#hth-services .hth-section-top {
    text-align: center;
    margin-bottom: 60px;
}

#hth-services .hth-badge {
    background: #ffffff;
    color: #1d1d1f;
    padding: 8px 20px;
    border-radius: 100px;
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

#hth-services .hth-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -1.5px;
}

#hth-services .hth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Card - Squircle App Design */
#hth-services .hth-item {
    background: #ffffff;
    padding: 40px;
    border-radius: 32px; 
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Featured / Best Seller Highlight */
#hth-services .hth-featured {
    border: 2px solid #ff3b30; /* Action Red */
}

#hth-services .hth-featured-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff3b30;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
}

/* Dynamic Hover Glow */
#hth-services .hth-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* Colorful Icon Logic */
#hth-services .hth-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

/* Assign unique gradients to each card icon */
#hth-services .hth-item:nth-child(1) .hth-icon { background: linear-gradient(135deg, #ff3b30, #ff9500); } /* Home Automation */
#hth-services .hth-item:nth-child(2) .hth-icon { background: linear-gradient(135deg, #007aff, #00d4ff); } /* Infra */
#hth-services .hth-item:nth-child(3) .hth-icon { background: linear-gradient(135deg, #5856d6, #af52de); } /* Security */
#hth-services .hth-item:nth-child(4) .hth-icon { background: linear-gradient(135deg, #34c759, #30d158); } /* Cloud */
#hth-services .hth-item:nth-child(5) .hth-icon { background: linear-gradient(135deg, #ff2d55, #ff375f); } /* App Dev */
#hth-services .hth-item:nth-child(6) .hth-icon { background: linear-gradient(135deg, #ffcc00, #ff9500); } /* Support */

#hth-services h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 12px;
}

#hth-services p {
    color: #6e6e73;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

#hth-services .hth-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #1d1d1f;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Colored checkmarks to match the icon style */
#hth-services .hth-list li i { color: #34c759; }

@media (max-width: 768px) {
    #hth-services .hth-title { font-size: 2.5rem; }
    #hth-services .hth-grid { grid-template-columns: 1fr; }
}
/* Using a high-specificity selector to override existing CSS */
#hth-nav-section .nav-cta a.btn-secondary {
    all: unset; /* Resets inherited styles from your old CSS */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Shape & Size */
    padding: 12px 28px !important;
    border-radius: 50px !important; /* Perfect pill shape */
    
    /* Colors & Vibrancy */
    background: #007AFF !important; /* HomeTech Signature Blue */
    color: #ffffff !important;
    
    /* Typography */
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    letter-spacing: -0.2px !important;
    
    /* Interaction & Animation */
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3) !important;
    border: 2px solid transparent !important;
}

/* Hover State */
#hth-nav-section .nav-cta a.btn-secondary:hover {
    background: #000000 !important; /* Shifts to black for a high-energy contrast */
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
}

/* Active State (When clicked) */
#hth-nav-section .nav-cta a.btn-secondary:active {
    transform: translateY(0) scale(0.98) !important;
}
/* Unique ID to force override and avoid conflicts */
#hometech-hero-info.hero-footer-info {
    all: unset; /* Clear all previous broken styles */
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin-top: 40px !important;
    padding: 20px 35px !important;
    background: rgba(255, 255, 255, 0.08) !important; /* Premium Glass look */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    width: fit-content !important;
    animation: fadeInUp 1s ease-out forwards !important;
}

/* Individual Items Styling */
#hometech-hero-info .info-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* Icon Vibrancy */
#hometech-hero-info .info-item i {
    color: #007AFF !important; /* Electric Blue Icons */
    font-size: 18px !important;
    filter: drop-shadow(0 0 8px rgba(0, 122, 255, 0.5)) !important;
}

/* Hover Effect for Interactivity */
#hometech-hero-info .info-item:hover {
    transform: translateY(-2px) !important;
    transition: 0.3s ease !important;
}

#hometech-hero-info .info-item:hover i {
    color: #34c759 !important; /* Switches to Green on hover */
}

/* Animation Keys */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    #hometech-hero-info.hero-footer-info {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        padding: 20px !important;
    }
}