:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --accent-color: #00c6ff;
    --background-light: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #e9ecef;
    --gradient-bg: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    background: var(--gradient-bg);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: #4da6ff; /* Fallback */
    background: linear-gradient(180deg, #4da6ff 0%, #007bff 100%);
    color: var(--white);
    padding: 6rem 2rem; /* Increased padding */
    min-height: 80vh; /* Taller hero */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* For any spilling content */
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem; /* Space between card and CTA */
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

/* Center hero content on all pages except homepage */
body:not(.home) .hero-content {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Profile Card Styling */
.hero-profile-card {
    position: relative;
    width: 340px;
    height: 500px;
    background: #fff;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: rotate(-3deg); /* Slight tilt like screenshot */
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hero-profile-card:hover {
    transform: rotate(0deg);
}

.hero-profile-img-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-img {
    opacity: 0;
    animation: slideShow 12s infinite;
}

.slide-img:nth-child(1) { animation-delay: 0s; }
.slide-img:nth-child(2) { animation-delay: 4s; }
.slide-img:nth-child(3) { animation-delay: 8s; }

@keyframes slideShow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    33% { opacity: 1; }
    38% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-profile-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    border-radius: 0 0 18px 18px;
    pointer-events: none;
}

.hero-profile-info {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.hero-profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    width: 18px;
    height: 18px;
    background: #00c6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-badge svg {
    width: 10px;
    height: 10px;
    fill: white;
}

.hero-profile-actions {
    display: flex;
    gap: 10px;
}

.action-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.action-icon:hover {
    transform: scale(1.1);
}

.action-icon.heart {
    color: #ff4b4b;
}

.action-icon.chat {
    color: #007bff;
}

/* CTA Section Styling */
.hero-cta {
    max-width: 480px;
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-cta h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.join-free-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: linear-gradient(to bottom, #333, #000);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 8px;
    position: relative;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
}

.join-free-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.join-free-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    border-radius: 8px 8px 0 0;
}

.divider-or {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.divider-or::before,
.divider-or::after {
    content: '';
    height: 1px;
    background: rgba(255,255,255,0.3);
    width: 60px;
    margin: 0 10px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 2rem;
    padding: 0.8rem;
    background: white;
    color: #555;
    border-radius: 4px;
    font-weight: 500;
    gap: 12px;
    cursor: pointer;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.2s;
}

.google-btn:hover {
    background: #f8f9fa;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.hero-tagline {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.95;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .hero-profile-card {
        width: 280px;
        height: 420px;
    }
}

/* Content Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Features */
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

/* Text Content Styling */
.content-block {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.content-block h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-block p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.content-block ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: disc;
    color: var(--text-light);
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 4rem 2rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #a0a0a0;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-buttons {
        margin-top: 1rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .nav-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
