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

:root {
    --primary: #4361ee;
    --secondary: #f72585;
    --accent: #4cc9f0;
    --dark: #212529;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    animation: slideDown 0.8s forwards 0.2s;
    border-bottom: 1px solid var(--glass-border);
}

@keyframes slideDown {
    to { transform: translateY(0); }
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo i {
    font-size: 32px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover i {
    transform: rotate(15deg);
}

.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: var(--transition);
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    animation-delay: calc(0.1s * var(--i));
}

.navbar a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
    transform-origin: left;
}

.navbar a:hover::before,
.navbar a.active::before {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary);
    transform: translateY(-3px);
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards;
    animation-delay: calc(0.1s * var(--i));
}

.social-media a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.05);
    animation: float 15s infinite linear;
    filter: blur(1px);
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(20px, -30px) rotate(90deg) scale(1.1); }
    50% { transform: translate(0, -50px) rotate(180deg) scale(0.9); }
    75% { transform: translate(-20px, -30px) rotate(270deg) scale(1.05); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* Section Title */
.section-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
    text-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
}

.section-title .title-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(67, 97, 238, 0.03);
    z-index: -1;
    user-select: none;
    opacity: 0;
    animation: fadeIn 1.5s forwards 0.5s;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 3D Button Effect */
.btn-3d {
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: inherit;
    transform: translateZ(-10px);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-3d:hover {
    transform: translateY(-5px) translateZ(10px);
}

.btn-3d:hover::before {
    transform: translateZ(-15px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 992px) {
    .header {
        padding: 15px 5%;
    }
    
    .navbar {
        gap: 15px;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .section-title .title-bg {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .navbar {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title .title-bg {
        font-size: 4rem;
    }
}

/* New Animation Classes */
.slide-in-left {
    animation: slideInLeft 1s forwards;
}

.slide-in-right {
    animation: slideInRight 1s forwards;
}

.zoom-in {
    animation: zoomIn 1s forwards;
}

.rotate-in {
    animation: rotateIn 1s forwards;
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Hover Effects */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.5s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-3d {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.hover-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}