/* =====================================================
   FREELANCE DATA ANALYTICS WEBSITE - STYLESHEET
   Design: Modern, professional data-driven aesthetic
   ===================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --text-primary: #E5E7EB;
    --text-header: #F3F4F6;
    --accent-blue: #15ffe0;
    --accent-teal: #15ffe0;
    --card-bg: rgba(30, 32, 31, 0.85);
    --card-border: rgba(75, 85, 99, 0.3);
    --header-bg: rgba(22, 24, 23, 0.85);
    --footer-bg: rgba(22, 24, 23, 0.85);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background - covers entire viewport */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('V3background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* Dark overlay for readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.801);
    z-index: -1;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    color: var(--text-header);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    color: var(--text-header);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

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

/* Navigation Buttons */
nav {
    display: flex;
    gap: var(--spacing-xs);
}

nav a {
    color: var(--text-header);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

nav a:hover {
    background: rgba(21, 255, 224, 0.192);
}

nav a:hover::after {
    width: 80%;
}

/* ===== FOOTER ===== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--footer-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-lg);
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    z-index: 999;
}

footer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MAIN CONTENT CONTAINER ===== */
main {
    padding: calc(80px + var(--spacing-lg)) var(--spacing-lg) var(--spacing-xl) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ===== CARDS - UNIVERSAL STYLING ===== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(21, 255, 224, 0.239);
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    color: var(--text-header);
    letter-spacing: -0.02em;
}

.card-body {
    text-align: center;
    line-height: 1.8;
    opacity: 0.9;
}

.card-body2 {
    text-align: left;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: var(--spacing-sm) auto;
    display: block;
}

/* ===== HOME PAGE SPECIFIC STYLES ===== */

/* Hero Section - Two Columns */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-xl);
    min-height: 60vh;
    text-align: left;
}

.hero-text {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-align: left;
}

.hero-text div {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.hero-text div:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-text div:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-text div:nth-child(3) {
    animation-delay: 0.3s;
    position: relative;
    display: inline-block;
}

/* Animated Underline for "for Businesses" */
.hero-text div:nth-child(3)::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: #15ffe0;
    animation: slideUnderline 2s ease-in-out 1.5s infinite;
}

@keyframes slideUnderline {
    0% {
        width: 0;
        height: 2px;
        left: 0;
    }
    25% {
        height: 6px;
    }
    50% {
        width: 100%;
        height: 8px;
    }
    75% {
        height: 6px;
    }
    100% {
        width: 100%;
        height: 2px;
        left: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(21, 255, 224, 0.329);
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
    filter: brightness(0.85);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Center Card */
.center-card {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
}

/* Three Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== SERVICES PAGE - 2x2 GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.service-card img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
}

/* ===== PROJECTS PAGE - SINGLE CENTERED CARD ===== */
.project-card {
    max-width: 800px;
    margin: 0 auto;
}

.project-card img {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
}

/* ===== ABOUT PAGE - STACKED CARDS ===== */
.about-stack {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

/* ===== CONTACT PAGE - SINGLE CARD WITH ICONS ===== */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.contact-icons {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-sm);
}

.contact-icons a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.contact-icons a:hover {
    opacity: 1;
    color: var(--accent-blue);
    transform: scale(1.1);
}

/* ===== PLACEHOLDER IMAGES ===== */
.placeholder-image {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(20, 184, 166, 0.2));
    border: 2px dashed var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 600;
    opacity: 0.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) 
{
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) 
{
    header {
        flex-direction: row;
        gap: var(--spacing-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .header-left {
        flex-direction: row;
        gap: var(--spacing-xs);
        flex: 1;
    }
    
    .header-name {
        font-size: 1.1rem;
    }
    
    .social-icons a {
        font-size: 1rem;
    }
    
    /* Hide full navigation on mobile */
    nav {
        display: none;
    }
    
    /* Mobile navigation container */
    .mobile-nav {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        position: relative;
    }
    
    .mobile-nav .home-btn {
        color: var(--text-header);
        text-decoration: none;
        padding: var(--spacing-xs) var(--spacing-sm);
        border-radius: 6px;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 0.9rem;
    }
    
    .mobile-nav .home-btn:hover {
        background: rgba(21, 255, 224, 0.192);
    }
    
    /* Dropdown button */
    .dropdown-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: var(--text-header);
        padding: var(--spacing-xs) var(--spacing-sm);
        border-radius: 6px;
        cursor: pointer;
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .dropdown-btn:hover {
        background: rgba(21, 255, 224, 0.192);
    }
    
    /* Dropdown menu */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: var(--spacing-xs);
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--card-border);
        min-width: 150px;
        display: none;
        z-index: 1001;
    }
    
    .dropdown-menu.active {
        display: block;
    }
    
    .dropdown-menu a {
        display: block;
        color: var(--text-header);
        text-decoration: none;
        padding: var(--spacing-sm);
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a:hover {
        background: rgba(21, 255, 224, 0.192);
    }
    
    /*Mobile Centering */
    .hero-text {
        font-size: 2.5rem;
        text-align: center;
        width: 100%;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        justify-items: center;
        width: 100%;
        gap: var(--spacing-md);
    }
    
    .hero-image {
        width: 100%;
        justify-content: center;
    }
    
    .hero-image img {
        width: 300px;
        height: 300px;
    }
    
    .cards-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }
    
    .cards-grid .card {
        width: 90%;
        max-width: 500px;
    }
    
    .center-card {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    main {
        padding: calc(60px + var(--spacing-sm)) var(--spacing-sm) var(--spacing-xl) var(--spacing-sm);
        width: 100%;
        max-width: 100%;
    }
}
    /* Desktop: hide mobile navigation */
@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}


/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}
