/* Modern Design System */
:root {
    --primary-color: #4361ee;
    --primary-light: #7b98ff;
    --primary-dark: #2a3eb1;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --warning-color: #fb8500;
    --success-color: #2ec4b6;
    --danger-color: #e63946;
    --light-color: #f7f9fc;
    --dark-color: #212529;
    --text-color: #333;
    --text-muted: #666;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    --gradient-cta: linear-gradient(135deg, #614385, #516395);
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Animated Gradients */
.animate-gradient {
    background-image: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Animation */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Pulse Animation */
.animate-pulse {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 rgba(67, 97, 238, 0.7);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-color);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 1px 0 var(--primary-color);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0%, 25%, 50%, 75%, 100% { transform: none; opacity: 1; }
    20%, 45%, 70% { transform: skewX(-0.5deg); opacity: 0.75; }
}

@keyframes glitch-2 {
    0%, 25%, 50%, 75%, 100% { transform: none; opacity: 0.8; }
    20%, 45%, 70% { transform: skewX(0.5deg); opacity: 0.75; }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Rotate In Animation */
.rotate-in {
    animation: rotateIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

@keyframes rotateIn {
    0% {
        transform: rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: rotate(0);
        opacity: 1;
    }
}

/* Modern Navbar Styling */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.navbar-brand::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.navbar-brand:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Modern Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.15) 0%, rgba(67, 97, 238, 0.1) 50%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-bg-shape {
    position: absolute;
    bottom: -120px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    animation: morphing 15s ease-in-out infinite;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-img {
    transition: var(--transition);
    transform-style: preserve-3d;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 8px solid white;
}

.hero-img:hover {
    transform: scale(1.05) translateY(-5px) rotate(3deg);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.18);
}

/* Text Highlight */
.highlight {
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    left: 0;
    bottom: 0;
    background-color: rgba(67, 97, 238, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
}

/* Section Titles */
.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    top: -10px;
    right: -20px;
    z-index: -1;
}

.title-underline {
    width: 70px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 2rem;
    border-radius: 2px;
    position: relative;
}

.title-underline::before,
.title-underline::after {
    content: '';
    position: absolute;
    height: 4px;
    border-radius: 2px;
    bottom: 0;
}

.title-underline::before {
    left: -30px;
    width: 20px;
    background: var(--accent-color);
}

.title-underline::after {
    right: -30px;
    width: 20px;
    background: var(--primary-light);
}

.section-description {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    border-color: transparent;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow-sm);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--box-shadow);
}

.card:hover::before {
    opacity: 0.05;
}

.card-title {
    font-weight: 600;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.card:hover .card-title::after {
    width: 100%;
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.8s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.08);
}

/* Skill Category Styles */
.skill-category {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.skill-category:hover .skill-icon {
    background-color: var(--primary-color);
    transform: rotateY(180deg);
}

.skill-category:hover .skill-icon i {
    color: white !important;
}

.skill-category ul li {
    position: relative;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.skill-category ul li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Service Card Styles */
.service-card {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: var(--gradient-primary);
    top: -50%;
    left: -50%;
    z-index: -1;
    transition: var(--transition);
    transform: rotate(45deg) translateY(-100%);
    opacity: 0;
}

.service-card:hover::before {
    transform: rotate(45deg) translateY(0);
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    transform: rotateY(360deg);
}

.service-card:hover .service-icon i {
    color: white !important;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* CTA Section */
.cta-content {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--gradient-cta) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-radius: var(--border-radius);
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 C60,20 40,80 0,100 Z" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: cover;
    z-index: -1;
}

.cta-content .btn-light {
    color: var(--primary-dark);
    font-weight: 600;
}

.cta-content .btn-outline-light:hover {
    color: var(--primary-dark) !important;
}

/* Progress Bar Styles */
.progress {
    height: 8px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 4px;
    overflow: visible;
    margin-bottom: 2rem;
}

.progress-bar {
    position: relative;
    border-radius: 4px;
    background: var(--gradient-primary);
    transition: width 1.5s ease;
}

.progress-bar::after {
    content: attr(data-progress);
    position: absolute;
    right: 0;
    top: -25px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" fill-opacity="1" d="M0,192L48,181.3C96,171,192,149,288,149.3C384,149,480,171,576,192C672,213,768,235,864,229.3C960,224,1056,192,1152,176C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    opacity: 0.5;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 1.5px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 15px;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
    padding-left: 20px;
}

.footer-link:hover::before {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    z-index: -1;
}

.social-link:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
}

.social-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Media Queries */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-section::before {
        top: -20%;
        right: -20%;
    }
    
    .service-icon, .skill-icon {
        width: 60px;
        height: 60px;
    }
}

/* Project Card Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(67, 97, 238, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.project-overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-overlay-content {
    transform: translateY(0);
}

.project-overlay .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-overlay .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Project Card Title Animation */
.project-card .card-title {
    position: relative;
    display: inline-block;
}

.project-card .card-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.project-card:hover .card-title::after {
    width: 100%;
} 