@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   UNIFIED DESIGN SYSTEM — CampusConnect
   Color Palette: Deep Indigo → Violet → Coral
   ============================================ */
:root {
    /* Primary Palette */
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    --primary-glow: rgba(108, 99, 255, 0.35);

    /* Accent */
    --accent: #FF6B6B;
    --accent-dark: #E05555;
    --accent-light: #FF8A8A;
    --accent-glow: rgba(255, 107, 107, 0.3);

    /* Neutrals (Dark Theme) */
    --bg-deep: #0B0D17;
    --bg-dark: #111327;
    --bg-card: #1A1D35;
    --bg-card-hover: #22264A;
    --bg-glass: rgba(26, 29, 53, 0.65);
    --bg-glass-light: rgba(255, 255, 255, 0.04);

    /* Text */
    --text-primary: #F0F0F8;
    --text-secondary: #A0A3BD;
    --text-muted: #6B6F8D;

    /* Borders & Surfaces */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-active: rgba(108, 99, 255, 0.4);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #6C63FF 0%, #B24BF3 50%, #FF6B6B 100%);
    --gradient-card: linear-gradient(145deg, rgba(108, 99, 255, 0.12) 0%, rgba(178, 75, 243, 0.08) 100%);
    --gradient-btn: linear-gradient(135deg, #6C63FF 0%, #8B83FF 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B6B 0%, #FF8A8A 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(108, 99, 255, 0.06) 0%, transparent 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-accent-glow: 0 0 30px var(--accent-glow);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s var(--ease-smooth);
    border: 2px solid transparent;
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s var(--ease-smooth);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-glass);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--bg-glass-light);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-3px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s var(--ease-smooth);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo i {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.logo span {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-glass-light);
}

.nav-links .btn {
    padding: 10px 22px;
    font-size: 0.88rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-smooth);
}

.hamburger:hover {
    background: var(--bg-glass-light);
    color: var(--primary-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: var(--bg-deep);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 60px rgba(108, 99, 255, 0.25));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--gradient-btn);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: transform 0.4s var(--ease-smooth);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */
.testimonial {
    padding: 100px 0;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    filter: blur(60px);
}

.testimonial-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    backdrop-filter: blur(10px);
}

.testimonial-content>i {
    font-size: 2.5rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: block;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 28px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author .name {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.05rem;
}

.testimonial-author .role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 50px;
}

.step {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

.step:hover {
    border-color: var(--border-active);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px var(--accent-glow);
    transition: transform 0.4s var(--ease-smooth);
}

.step:hover .step-number {
    transform: scale(1.1);
}

.step h3 {
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
}

.how-it-works-image {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.how-it-works-image img {
    max-width: 320px;
    height: auto;
    filter: brightness(0.9) hue-rotate(10deg);
    border-radius: var(--radius-lg);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: var(--gradient-hero);
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
}

.cta h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.cta p {
    margin-bottom: 36px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta .btn {
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-glass);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-logo i {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-smooth);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-social h4 {
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s var(--ease-smooth);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--gradient-btn);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(11, 13, 23, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 99;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
        animation: fadeInNav 0.3s var(--ease-out);
    }

    @keyframes fadeInNav {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .nav-links a {
        font-size: 1.15rem;
        padding: 14px 32px;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .features h2,
    .how-it-works h2,
    .cta h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .features,
    .testimonial,
    .how-it-works,
    .cta {
        padding: 70px 0;
    }

    .testimonial-content {
        padding: 32px 24px;
    }

    .features h2,
    .how-it-works h2,
    .cta h2 {
        font-size: 1.7rem;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.step,
.testimonial-content {
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.step:nth-child(2) {
    animation-delay: 0.1s;
}

.step:nth-child(3) {
    animation-delay: 0.2s;
}