/* Design Tokens */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #151515;
    --bg-glass: rgba(15, 15, 15, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #f25e3d; /* Vibrant orange matching the design */
    --accent-hover: #d94b2a;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-primary: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    p { font-size: 1rem; }
}

.accent-text {
    color: var(--accent);
}

.subtitle {
    color: var(--text-main);
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
}

.section-padding {
    padding: 6rem 0;
}
@media (max-width: 768px) {
    .section-padding { padding: 4rem 0; }
}

.block-padding {
    padding: 3rem;
}
@media (max-width: 768px) {
    .block-padding { padding: 2rem; }
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mt-6 { margin-top: 4rem; }

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.relative { position: relative; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.ml-auto { margin-left: auto; }

.bg-darker { background-color: var(--bg-darker); }
.bg-black { background-color: #000; }
.bg-dark-glass {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 94, 61, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled, .navbar.menu-open {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    z-index: 1001;
}

.logo span {
    color: var(--accent);
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}


.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax */
    background-size: cover;
    background-position: center top;
    z-index: -2;
    background-color: #2a1b18; 
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.8) 60%, rgba(10, 10, 10, 1) 100%);
    z-index: -1;
}

.hero-content {
    padding-top: 15vh;
    margin-bottom: 2rem;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-bottom-bar {
    padding: 6rem 0 3rem;
}

.hero-bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-feature h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-feature h3 span {
    color: var(--accent);
    font-size: 0.9rem;
}

.hero-feature ul li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.trusted-by {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.trusted-by p {
    margin-bottom: 0;
    max-width: 400px;
}

.trusted-logos {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.partner-logo {
    max-height: 40px;
    width: auto;
    opacity: 0.85;
    filter: grayscale(100%) brightness(150%);
    transition: all 0.3s ease;
    object-fit: contain;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}

/* About Section */
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    min-height: 400px;
    background-color: #333;
}

/* Portfolio Cards */
.category-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card-img {
    height: 220px;
    overflow: hidden;
    background-color: #222;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-tag {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-color: #222;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(0px);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background-image: url('footer background (1).png');
    background-size: cover;
    background-position: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-size: 2rem;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li, .footer-social ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a, .footer-social ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover, .footer-social ul li a:hover {
    color: var(--accent);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(5,5,5,0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links .btn {
        margin-top: 2rem;
    }
    
    .hero-bottom-bar {
        padding: 4rem 0 2rem;
    }
    
    .trusted-by {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social ul {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-bottom-grid {
        grid-template-columns: 1fr;
    }
    .grid-3-col {
        grid-template-columns: 1fr;
    }
}

/* Floating CTA */
.floating-cta-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-cta {
    background-color: var(--accent);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all var(--transition-medium);
}

.whatsapp-cta {
    background-color: #25D366;
}

.email-cta {
    background-color: #EA4335;
}

.floating-cta:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: white;
}

@media (max-width: 768px) {
    .floating-cta-container {
        bottom: 1rem;
        right: 1rem;
        gap: 0.8rem;
    }
    .floating-cta {
        width: 45px;
        height: 45px;
    }
    .floating-cta svg {
        width: 18px;
        height: 18px;
    }
}

/* Loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-weave-container {
    position: relative;
    width: 300px;
    max-width: 80vw;
    height: auto;
    display: flex;
    align-items: center;
}

.tilet-logo {
    width: 100%;
    display: block;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    animation: weave-reveal 1.0s ease-in-out forwards;
    animation-delay: 0.2s;
}

.shuttle-thread {
    position: absolute;
    left: 0;
    top: -10%;
    height: 120%;
    width: 2px;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    opacity: 0;
    animation: shuttle-move 1.0s ease-in-out forwards;
    animation-delay: 0.2s;
}

@keyframes weave-reveal {
    0%   { clip-path: polygon(0 0, 0% 0, 0% 100%, 0 100%); }
    20%  { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%); }
    40%  { clip-path: polygon(0 0, 15% 0, 15% 100%, 0 100%); }
    60%  { clip-path: polygon(0 0, 70% 0, 70% 100%, 0 100%); }
    80%  { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@keyframes shuttle-move {
    0%   { left: 0%; opacity: 1; }
    20%  { left: 35%; opacity: 1; }
    40%  { left: 15%; opacity: 1; }
    60%  { left: 70%; opacity: 1; }
    80%  { left: 50%; opacity: 1; }
    95%  { left: 100%; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Services Banner Background */
#services.services-banner {
    background-image: url('serv.webp');
}

@media (max-width: 768px) {
    #services.services-banner {
        background-image: url('serv2.png');
    }
}

/* Footer Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: var(--text-main);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-icons a {
        color: #000000;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 0.5rem;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
