/* Landing Page Styles */

:root {
    --primary-color: #667eea;
    --primary-light: #764ba2;
    --primary-dark: #0052a3;
    --accent-color: #0066cc;
    --secondary-color: #f0f4f8;
    --text-dark: #1a202c;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 1.75rem;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

.btn-signin {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-signup {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%), 
                url('/images/hero1.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 100%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 0% 0%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: rgba(0, 0, 0, 0.05);
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-4px);
}

/* Hero Visual Cards */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    perspective: 1000px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    transform: translateX(0);
    backdrop-filter: blur(10px);
    animation: floatFromRight 0.8s ease-out forwards;
}

.hero-card:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    background: white;
}

.hero-card:nth-child(1) {
    animation-delay: 0s;
}

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

.hero-card:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-card:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes floatFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-card.card-2 {
    margin-left: 1.5rem;
}

.hero-card.card-3 {
    margin-left: 3rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8d9f5 0%, #f0e6ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Articles Section */
.articles {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f8fafb 0%, white 100%);
    position: relative;
}

.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.article-card {
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.article-featured {
    grid-row: span 2;
}

.article-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.article-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.article-card:hover .article-image-wrapper {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: var(--transition);
    z-index: 1;
}

.article-card:hover .article-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.article-title {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0 1.5rem 3rem 1.5rem;
    line-height: 1.4;
    word-spacing: 0.1em;
    transition: var(--transition);
    cursor: pointer;
}

.article-featured .article-title {
    font-size: 1.8rem;
}

.article-card:hover .article-title {
    color: #ffd700;
}

.btn-article-action {
    position: absolute;
    bottom: 0.2rem;
    left: 1rem;
    z-index: 2;
    padding: 0.4rem 0.9rem;
    background: rgba(102, 126, 234, 0.2);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-article-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Desktop Layout - Article Grid */
@media (min-width: 1024px) {
    .articles-container {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        grid-template-rows: auto auto;
    }

    .article-featured {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .article-card:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .article-card:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .article-image-wrapper {
        min-height: 500px;
    }

    .article-featured .article-image-wrapper {
        min-height: 550px;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-featured .article-title {
        font-size: 2rem;
    }
}

/* Tablet Layout */
@media (max-width: 1023px) and (min-width: 768px) {
    .articles-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .article-featured {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .article-card:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .article-card:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .article-image-wrapper {
        min-height: 350px;
    }

    .article-featured .article-image-wrapper {
        min-height: 400px;
    }

    .article-title {
        font-size: 1.3rem;
    }

    .article-featured .article-title {
        font-size: 1.6rem;
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    .articles-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-featured {
        grid-column: 1;
        grid-row: 1;
    }

    .article-image-wrapper {
        min-height: 280px;
    }

    .article-featured .article-image-wrapper {
        min-height: 320px;
    }

    .article-title {
        font-size: 1.2rem;
        padding: 0 1rem 2.5rem 1rem;
    }

    .article-featured .article-title {
        font-size: 1.3rem;
    }

    .btn-article-action {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
    }
}

/* Security Section */
.security {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%), 
                url('/images/hero3.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
}

.security-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.security-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.security-list {
    list-style: none;
}

.security-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.security-list i {
    color: var(--success-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.security-list h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.security-list p {
    color: rgba(255, 255, 255, 0.85);
}

.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lock-icon-large {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: white;
}

.stats {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1.25rem 3rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-card {
        flex-direction: row;
    }

    .hero-card.card-2,
    .hero-card.card-3 {
        margin-left: 0;
    }

    .security-container {
        grid-template-columns: 1fr;
    }

    .lock-icon-large {
        width: 200px;
        height: 200px;
        font-size: 80px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        padding: 3rem 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
    }

    .feature-card p {
        display: none;
    }

    @media (max-width: 480px) {
        .logo {
            font-size: 1.2rem;
        }

        .nav-auth {
            gap: 0.5rem;
        }

        .btn-signin, .btn-signup {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }

        .hero-text h1 {
            font-size: 2rem;
        }

        .stats {
            grid-template-columns: 1fr;
        }

        .features {
            padding: 3rem 0.5rem;
        }

        .features-grid {
            padding: 0 0.5rem;
            gap: 1rem;
        }
    }
}

/* Responsive hero image for tablet and phone */
@media (max-width: 1024px) {
    .hero {
        background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%), url('/images/hero2.jpg') center/cover no-repeat;
        background-attachment: fixed;
        background-position: center top;
    }
}

@media (max-width: 768px) {
    .hero {
        background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%), url('/images/hero2.jpg') center/cover no-repeat;
        background-attachment: fixed;
        padding-top: 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-visual {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
    }

    .hero-card {
        padding: 1rem;
        border-radius: 12px;
    }
}
