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

:root {
    --primary: #00f2ff;
    --secondary: #7000ff;
    --accent: #ff00c8;
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(10, 10, 10, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --gradient-1: linear-gradient(135deg, var(--primary), var(--secondary));
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* --- Components --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: #2563eb; /* More professional blue */
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    background: #1d4ed8;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

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

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

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Header --- */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    padding: 0.8rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-btns {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

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

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero --- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left; /* Align text to left as per screenshot */
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, rgba(10, 15, 30, 0.9), rgba(10, 15, 30, 0.4)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15), transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: 0; /* Left aligned content */
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

.hero-content .highlight {
    color: #2563eb;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 0 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

/* --- Grid Sections --- */

.section {
    padding: 8rem 0;
}

.services-grid, .portfolio-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Portfolio specific --- */
.portfolio-card {
    padding: 0;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-info {
    padding: 1.5rem;
}

/* --- Footer --- */

footer {
    padding: 6rem 0 0;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.rotating-logo-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.rotating-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.15);
    animation: rotate-360 25s linear infinite;
    object-fit: cover;
}

@keyframes rotate-360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: rgba(5, 5, 5, 0.8);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    font-size: 1.2rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.footer-socials a:hover {
    color: var(--bg-dark);
    background: var(--primary);
    transform: translateY(-3px);
}

/* --- Responsive --- */

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 140px 0 80px; /* Increased top padding to avoid header overlap */
        height: auto;
        min-height: 100vh;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center; /* Center the buttons */
        gap: 1rem;
    }

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

    .rotating-logo-container {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 2rem;
    }

    .hero-btns .btn {
        width: 100%; /* Full width buttons on mobile look better */
        max-width: 300px;
    }

    .section {
        padding: 5rem 0;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
}
