@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #003366;
    --secondary: #0066cc;
    --accent: #00a8ff;
    --accent-2: #0088cc;
    --accent-3: #66ccff;
    --background: #f8f9fa;
    --text: #333333;
    --spacing: clamp(3rem, 5vw, 8rem);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loader Styles */
.loader-container {
    --uib-size: 35px;
    --uib-color: var(--accent);
    --uib-speed: .9s;
    --uib-stroke: 3.5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--uib-size);
    width: var(--uib-size);
    margin: 2rem auto;
}

.line {
    position: absolute;
    top: calc(50% - var(--uib-stroke) / 2);
    left: 0;
    height: var(--uib-stroke);
    width: 100%;
    border-radius: calc(var(--uib-stroke) / 2);
    background-color: var(--uib-color);
    animation: rotate var(--uib-speed) ease-in-out infinite alternate;
    transition: background-color 0.3s ease;
}

.line:nth-child(1) { animation-delay: calc(var(--uib-speed) * -0.375); }
.line:nth-child(2) { animation-delay: calc(var(--uib-speed) * -0.375); opacity: 0.8; }
.line:nth-child(3) { animation-delay: calc(var(--uib-speed) * -0.3); opacity: 0.6; }
.line:nth-child(4) { animation-delay: calc(var(--uib-speed) * -0.225); opacity: 0.4; }
.line:nth-child(5) { animation-delay: calc(var(--uib-speed) * -0.15); opacity: 0.2; }
.line:nth-child(6) { animation-delay: calc(var(--uib-speed) * -0.075); opacity: 0.1; }

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing);
    max-width: 1440px;
}


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

.nav-links a {
    text-decoration: none;
    color: #2d3436;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0984e3;
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.slideshow-container {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    animation: fadeIn 1.5s;
}

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

.about-content, .author-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.about-image img, .author-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text p, .author-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.animate-title {
    font-size: 3em;
    text-align: center;
    margin-bottom: 50px;
    animation: flyIn 1s ease-out;
}

.animate-content {
    animation: fadeIn 1s ease-out 0.5s both;
}

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

section {
    padding: var(--spacing) 0;
    position: relative;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about-content {
    animation: slideInRight 1s forwards;
}

.author-content {
    animation: slideInLeft 1s forwards;
}

.portfolio-item, .gallery-item {
    animation: scaleIn 0.8s forwards;
    animation-delay: calc(var(--item-index, 0) * 0.2s);
}

.contact-content {
    animation: fadeInUp 1s forwards;
}

section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.author {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .about-content, .author-content {
        grid-template-columns: 1fr;
    }

    .about-image, .author-image {
        text-align: center;
    }

    .about-image img, .author-image img {
        max-width: 400px;
    }

    .animate-title {
        font-size: 2em;
    }
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 36px;
    }
    .tagline {
        font-size: 20px;
    }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.tagline {
    font-size: 24px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: var(--accent);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.portfolio {
    background: #f9f9f9;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.slide {
    position: relative;
}

.slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
    text-align: center;
    width: 100%;
    padding: 0 2rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea {
    padding: 1rem 1.5rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
}

.cta-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

textarea {
    height: 150px;
}

footer {
    background: var(--primary);
    color: white;
    padding: 50px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 30px;
    text-align: center;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-policies {
    margin-bottom: 20px;
}

.footer-policies a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-policies a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}