/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;
}

/* ===== COLORS (DARK MODE + BLUE/RED) ===== */
:root {
    --primary: #00d4ff;   /* Blue */
    --secondary: #ff3e3e; /* Red */
    --dark: #121212;      /* Dark background */
    --darker: #0a0a0a;    /* Even darker */
    --light: #2a2a2a;     /* Light dark */
    --white: #e0e0e0;     /* Off-white text */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --glow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* ===== NAVBAR ===== */
nav {
    background-color: var(--darker);
    box-shadow: var(--shadow);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--primary);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: var(--glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: 0.3s;
    position: relative;
    color: var(--white);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: var(--glow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
}

/* ===== Home ===== */
.home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.home-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: var(--glow);
    animation: fadeInDown 1s ease-out;
}

.home-content h1 span {
    color: var(--primary);
}

.home-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid var(--primary);
    box-shadow: var(--glow);
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.btn:hover {
    background: var(--primary);
    color: var(--darker);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.btn i {
    margin-left: 8px;
}

/* Floating icons in home */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.1;
    animation: float 15s infinite linear;
}

.floating-icons i:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icons i:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 5s;
}

.floating-icons i:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 10s;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== HEADINGS ===== */
h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--white);
    position: relative;
}

h2 span {
    color: var(--primary);
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto;
    border-radius: 2px;
}

/* ===== ABOUT ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 20px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.about-content p:nth-child(1) {
    animation-delay: 0.3s;
}

.about-content p:nth-child(2) {
    animation-delay: 0.6s;
}

.about-content p:nth-child(3) {
    animation-delay: 0.9s;
}

/* ===== FLIP CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    perspective: 1000px;
}

.flip-card {
    background: transparent;
    width: 100%;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border: 1px solid var(--primary);
    color: var(--white);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: var(--darker);
    border: 1px solid var(--secondary);
}

.flip-card-front i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.flip-card:hover .flip-card-front i {
    transform: scale(1.1);
}

.flip-card-front h3, .flip-card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.flip-card-back p {
    font-size: 0.9rem;
    color: var(--white);
    opacity: 0.9;
    line-height: 1.5;
    padding: 0 10px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--darker);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--primary);
}

footer i {
    color: var(--primary);
    margin: 0 5px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.5s;
    }

    .nav-links.active {
        left: 0;
    }

    .burger {
        display: block;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-content p {
        font-size: 1.2rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .flip-card {
        height: 180px;
    }

    .flip-card-front i {
        font-size: 2.5rem;
    }
}