/* index-new.css */

/* Import modern fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Playfair+Display:wght@400;700&family=Orbitron:wght@400;700&display=swap');

/* Define custom properties for colors and reusability */
:root {
    --primary-light: #000000;
    --primary: #219ebc;
    --primary-dark: #023047;
    --accent: #ffb703;
    --accent-dark: #fb8500;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glow: rgba(251, 133, 0, 0.5);
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #f4f7fa, var(--primary-light));
    color: var(--primary-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header styles */
header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 4px 20px rgba(2, 48, 71, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, background 0.3s ease;
}

header.sticky {
    animation: slideIn 0.5s ease forwards;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
}

.logo:hover {
    transform: rotateY(360deg) scale(1.15);
    box-shadow: 0 0 30px var(--glow);
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-left: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-dark);
    bottom: -5px;
    left: 0;
    transition: width 0.4s ease;
}

h1:hover::after {
    width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

nav ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    bottom: -6px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a.active::before,
nav ul li a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1513364776144-60967b0f800f?auto=format&fit=crop&q=80') center/cover no-repeat fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(142, 202, 230, 0.6), rgba(2, 48, 71, 0.6));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    transform-style: preserve-3d;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) translateZ(0);
    transition: transform 0.6s ease;
    animation: float 3s ease-in-out infinite;
}

.hero h2:hover {
    transform: perspective(1000px) translateZ(50px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero p {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero a {
    background: var(--accent-dark);
    color: #fff;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px var(--glow);
}

.hero a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.hero a:hover::before {
    left: 100%;
}

.hero a:hover {
    background: var(--accent);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px var(--glow);
}

/* About Section */
.about {
    background: linear-gradient(180deg, #fff, var(--primary-light));
    padding: 5rem 0;
    position: relative;
}

.about h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 2px;
    position: relative;
}

.about h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

.about .flex {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    --tiltX: 0deg;
    --tiltY: 0deg;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.about img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.about .flex:hover img {
    transform: scale(1.1) translateZ(20px);
    box-shadow: 0 0 20px var(--glow);
}

.about p, .about h3, .about h4 {
    color: var(--primary-dark);
}

.about p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.about ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.about ul li {
    color: var(--primary-light);
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/dark-mosaic.png');
    opacity: 0.15;
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

footer p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.social-icon {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.social-icon:hover {
    color: var(--accent);
    transform: perspective(500px) translateZ(20px) rotate(360deg);
    text-shadow: 0 0 15px var(--glow);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .about .flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about img {
        margin-bottom: 1.5rem;
    }
}