/* Base Styles */
:root {
    /* Modern dark color scheme with refinements */
    --primary-color: #0277f6;          /* Blue accent */
    --secondary-color: #0161c9;        /* Darker blue for hover states */
    --accent-color: #0277f6;           /* Matching primary */
    --highlight-color: #8c42f4;        /* Purple for selective highlights */
    --text-color: #ffffff;             /* Pure white for main text */
    --text-muted: #adb5bd;             /* Slightly muted gray text that's more readable */
    --dark-bg: #121212;                /* Dark background */
    --dark-bg-secondary: #1a1a1a;      /* Slightly lighter background */
    --card-bg: #202020;                /* Card background - dark grey */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow for better depth */
    --glow-color: rgba(2, 119, 246, 0.5); /* Glow color */
    --header-height: 60px;             /* Consistent header height */
    --border-radius: 8px;              /* Consistent border radius */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.05); /* Subtle borders */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Text styling updates */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(18, 18, 18, 0.97);
    padding: 0.6rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    backdrop-filter: blur(10px);
    border-bottom: var(--border-subtle);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 40%;
    list-style: none;
}

.nav-links li {
    position: relative;
}

/* Navigation links */
.nav-links a {
    color: var(--text-color);
    padding: 0.5rem 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 70%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                              rgba(0, 184, 212, 0.2), 
                              rgba(140, 66, 244, 0.2));
    z-index: 1;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2.2rem;
    border: none;
    border-radius: 50px; /* More rounded buttons */
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.glow-btn {
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-color) 10%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glow-btn:hover::before {
    opacity: 1;
    animation: ripple 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* About Section */
.about {
    background-color: var(--dark-bg-secondary);
    padding: 5rem 0;
    text-align: center;
}

/* About section */
.about h2 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* Featured Sections */
.featured {
    padding: 4rem 0;
}

.section-card {
    display: flex;
    margin-bottom: 4rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: var(--border-subtle);
}

.section-card.reversed {
    flex-direction: row-reverse;
}

.card-content {
    flex: 1;
    padding: 2.5rem; /* Slightly increased padding for more space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Featured section headings */
.card-content h2 {
    color: var(--text-color);
    font-size: 2rem;
}

.card-image {
    flex: 1;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.assets-image {
    background-image: url('https://images.unsplash.com/photo-1556438064-2d7646166914?auto=format&fit=crop&w=800&q=80');
}

.tutorials-image {
    background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&w=800&q=80');
}

/* Footer updated for white background */
footer {
    background-color: #ffffff; /* Changed to white */
    padding: 4rem 0 1rem;
    border-top: 1px solid #f0f0f0; /* Subtle border for separation */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding-right: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: #333333; /* Darker color for better contrast on white */
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.social-icons {
    display: flex;
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    background-color: #f5f5f5; /* Light gray background */
    color: #666666; /* Icon color */
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white; /* Ensure icon is visible on hover */
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-section p,
.footer-bottom p {
    color: #666666; /* Adjusted for white background */
}

/* New pre-footer section */
.pre-footer {
    background-color: var(--dark-bg-secondary);
    padding: 4rem 0;
    text-align: center;
    border-top: var(--border-subtle);
}

.pre-footer .container {
    max-width: 900px;
}

.pre-footer p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.pre-footer .tagline {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-top: 1.5rem;
    letter-spacing: 1px;
}

/* Quote image section */
.quote-section {
    padding: 0;
    background-color: var(--dark-bg);
    text-align: center;
    overflow: hidden;
}

.quote-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.quote-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .nav-links {
        width: 60%;
    }
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--dark-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
        z-index: 1000;
    }

    .section-card, .section-card.reversed {
        flex-direction: column;
    }
    
    .card-image {
        min-height: 250px;
        order: -1;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Update motto styling for better consistency */
.motto {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.motto strong {
    color: var(--primary-color);
}
