:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --tertiary-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --success-gradient: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    --light-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    
    /* Enhanced Light theme colors */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-accent: #667eea;
    --bg-light: #ffffff;
    --bg-white: #f7fafc;
    --bg-dark: #edf2f7;
    --bg-gradient: linear-gradient(135deg, #f093fb10 0%, #667eea15 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15), 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 20px;
    --border-radius-small: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
    position: relative;
}

/* Enhanced animated background with gradient overlays */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('../images/bg1.jpg') center/cover no-repeat,
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(79, 172, 254, 0.10) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.90) 100%);
    background-blend-mode: overlay, normal, normal, normal, normal;
    animation: backgroundFloat 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.9;
}

/* Enhanced geometric shapes with modern styling */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    opacity: 0.08;
    animation: geometricFloat 20s ease-in-out infinite;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(1px);
}

.geometric-shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: var(--secondary-gradient);
}

.geometric-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 3s;
    background: var(--accent-gradient);
}

.geometric-shape:nth-child(3) {
    width: 90px;
    height: 90px;
    bottom: 20%;
    left: 30%;
    animation-delay: 6s;
    background: var(--tertiary-gradient);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

/* Enhanced buttons with modern styling */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-accent);
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-hover);
}

.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-gradient {
    background: var(--primary-gradient) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientShift 4s ease-in-out infinite !important;
    display: inline-block !important;
}

/* Ensure gradient text is visible */
.hero-title .accent-gradient {
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* Unique Animated Floating Shapes */
.floating-shapes {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(1.5px);
    animation: floatShape 14s linear infinite;
    will-change: transform, opacity;
    mix-blend-mode: lighten;
}

.floating-shape.shape1 {
    width: 120px; height: 120px;
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    left: 5vw; top: 10vh;
    animation-delay: 0s;
}
.floating-shape.shape2 {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    left: 80vw; top: 20vh;
    animation-delay: 3s;
}
.floating-shape.shape3 {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #f093fb 0%, #fed6e3 100%);
    left: 50vw; top: 80vh;
    animation-delay: 6s;
}
.floating-shape.shape4 {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, #a8edea 0%, #667eea 100%);
    left: 20vw; top: 60vh;
    animation-delay: 1.5s;
}
.floating-shape.shape5 {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #fed6e3 0%, #f093fb 100%);
    left: 70vw; top: 70vh;
    animation-delay: 4.5s;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.9;
    }
    25% {
        transform: translateY(-40px) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: translateY(30px) rotate(270deg);
        opacity: 0.8;
    }
}

@keyframes geometricFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.2);
        opacity: 0.12;
    }
    50% {
        transform: translateY(-10px) rotate(180deg) scale(0.8);
        opacity: 0.15;
    }
    75% {
        transform: translateY(20px) rotate(270deg) scale(1.1);
        opacity: 0.10;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 100% 0%;
        filter: hue-rotate(15deg);
    }
    50% {
        background-position: 100% 100%;
        filter: hue-rotate(30deg);
    }
    75% {
        background-position: 0% 100%;
        filter: hue-rotate(15deg);
    }
}

@keyframes floatShape {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.18;
    }
    25% {
        transform: translateY(-30px) scale(1.08) rotate(12deg);
        opacity: 0.23;
    }
    50% {
        transform: translateY(-60px) scale(1.15) rotate(24deg);
        opacity: 0.28;
    }
    75% {
        transform: translateY(-30px) scale(1.08) rotate(12deg);
        opacity: 0.23;
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.18;
    }
}

/* Responsive adjustments for containers and sections */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 800px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 40px;
    }
    .hero-image {
        height: 320px;
        margin-top: 30px;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .profile-card,
    .image-wrapper {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        padding: 30px 10px;
    }
    .newsletter-content {
        flex-direction: column;
        gap: 30px;
    }
    .newsletter-visual {
        margin: 0 auto;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 20px;
    }
    .floating-shapes {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .btn-primary,
    .btn-secondary {
        font-size: 1rem;
        padding: 12px 18px;
    }
    .profile-card,
    .image-wrapper {
        max-width: 100%;
        padding: 18px 5px;
    }
    .newsletter-content {
        padding: 0 5px;
    }
    .footer-content {
        padding: 0 5px;
    }
    #scrollToTopBtn {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
    #scrollToTopBtn .liquid-arrow svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .about-hero h2,
    .about-hero h3 {
        font-size: 1.1rem;
    }
    .profile-card,
    .image-wrapper {
        padding: 10px 2px;
    }
    .newsletter-title {
        font-size: 1.2rem;
    }
    .newsletter-description {
        font-size: 0.95rem;
    }
    .footer-content {
        gap: 10px;
    }
}

/* Ensure images and videos are responsive */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive grid for services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Responsive video carousel */
.video-carousel {
    gap: 16px;
}
@media (max-width: 900px) {
    .video-item {
        width: 220px;
        height: 340px;
    }
}
@media (max-width: 600px) {
    .video-item {
        width: 160px;
        height: 220px;
    }
}

/* Responsive newsletter phone mockup */
.phone-mockup {
    max-width: 260px;
    margin: 0 auto;
}
@media (max-width: 480px) {
    .phone-mockup {
        max-width: 180px;
    }
}
