/* ========================================
   CUSTOM CSS FOR AMAR VORA PORTFOLIO
   ======================================== */

/* Root Variables */
:root {
    --navy-blue: #1e3a8a;
    --navy-blue-dark: #1e40af;
    --navy-blue-light: #dbeafe;
    --navy-gradient-from: #1e3a8a;
    --navy-gradient-to: #3b82f6;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8fafc;
    position: relative;
    overflow-x: hidden;
}

/* Tech Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(30, 58, 138, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Text Colors */
.text-navy {
    color: var(--navy-blue) !important;
}

.bg-navy {
    background-color: var(--navy-blue) !important;
}

.btn-navy {
    background-color: var(--navy-blue);
    border-color: var(--navy-blue);
    color: white;
}

.btn-navy:hover {
    background-color: #172554;
    border-color: #172554;
    color: white;
}

.border-navy {
    border-color: var(--navy-blue) !important;
}

.bg-navy-light {
    background-color: var(--navy-blue-light);
}

/* Gradients */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, rgba(219, 234, 254, 0.3) 50%, #f8fafc 100%);
}

.bg-gradient-navy {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #172554 100%);
}

.bg-gradient-navy-light {
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.1) 0%, transparent 100%);
}

.text-gradient {
    background: linear-gradient(90deg, var(--navy-blue) 0%, #3b82f6 50%, var(--navy-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    color: #64748b !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--navy-blue) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.gradient-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-blue) 0%, #3b82f6 100%);
    border-radius: 2px;
}

.intro-box {
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.1) 0%, transparent 100%);
    border-radius: 8px;
}

.social-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--navy-blue);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(219, 234, 254, 0.5);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: var(--navy-blue);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-frame-rotate {
    position: absolute;
    inset: 0;
    background: var(--navy-blue);
    border-radius: 1rem;
    transform: rotate(6deg);
    z-index: 0;
}

.image-frame {
    position: relative;
    background: white;
    padding: 8px;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1;
}

/* Title Underline */
.title-underline {
    width: 80px;
    height: 4px;
    background: var(--navy-blue);
    border-radius: 2px;
}

/* Client Carousel */
.client-carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.client-carousel .slick-dots {
    bottom: -40px;
}

.client-carousel .slick-dots li button:before {
    font-size: 12px;
    color: var(--navy-blue);
}

.client-carousel .slick-dots li.slick-active button:before {
    color: var(--navy-blue);
}

.client-card {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.client-card:hover {
    border-color: var(--navy-blue) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-card .card-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.client-card .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.client-card:hover .card-img-top {
    transform: scale(1.1);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--navy-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Stats Cards */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: rgba(219, 234, 254, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--navy-blue);
}

/* Skills Section */
.skill-list li {
    padding: 8px 0;
    color: #64748b;
    transition: all 0.3s ease;
}

.skill-list li:hover {
    color: var(--navy-blue);
    padding-left: 8px;
}

.skill-list li i {
    transition: all 0.3s ease;
}

.skill-list li:hover i {
    transform: scale(1.2);
}

/* Certifications */
.cert-card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
}

.cert-card:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cert-icon {
    width: 48px;
    height: 48px;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #cbd5e1;
    transform: translateX(-50%);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -1rem);
    width: 48px;
    height: 48px;
    background: var(--navy-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 4px solid #f8fafc;
    z-index: 5;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.exp-card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
}

.exp-card:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.bullet-point {
    width: 6px;
    height: 6px;
}

/* Recommendations */
.rec-card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
}

.rec-card:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.quote-icon {
    position: absolute;
    top: -8px;
    left: 0;
    font-size: 2rem;
    opacity: 0.3;
}

/* Contact Section */
.contact-info-card {
    transition: all 0.3s ease;
    border-radius: 8px !important;
}

.contact-info-card:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-control:focus {
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

/* Mobile Timeline */
@media (max-width: 991.98px) {
    .timeline::before {
        display: none;
    }
    
    .timeline-dot {
        display: none !important;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 2rem;
    }
    
    .client-carousel-wrapper {
        padding: 0 50px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .client-carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--navy-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    background: #172554;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease-out;
}

/* Utility Classes */
.leading-relaxed {
    line-height: 1.75;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    .social-icon,
    .carousel-nav,
    #contact {
        display: none !important;
    }
    
    body::before {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}
