/* ==========================================
   SURAJ SAINI - PORTFOLIO STYLES
   Vancouver | Software Quality Engineer
   ========================================== */

/* CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #666;
    --white: #ffffff;
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-links li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text-dark);
    font-weight: 400;
    transition: var(--transition);
}

.dropdown a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.dropdown a::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    display: flex;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    background: var(--white);
    margin-bottom: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.hero-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
    text-align: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hero-text .location {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-text .location i {
    color: var(--primary-color);
    margin-right: 5px;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.left-image,
.right-image {
    text-align: center;
}

.left-image {
    opacity: 0;
    transform: translateX(-100px) rotate(-15deg);
    animation: slideInLeft 1.5s ease forwards 0.2s, bounceLeft 2s ease-in-out infinite 1.7s;
}

.right-image {
    opacity: 0;
    transform: translateX(100px) rotate(15deg);
    animation: slideInRight 1.5s ease forwards 0.2s, bounceRight 2s ease-in-out infinite 1.7s;
}

.left-image img,
.right-image img {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.left-image img:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.right-image img:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: 4rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.highlight-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-item .label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-light);
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    width: calc(100% - 40px);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.timeline-content .company {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.timeline-content .duration {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.timeline-content .projects {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.timeline-content .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.timeline-content .tech-tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills {
    padding: 4rem 0;
    background: #f8f9fa;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.skill-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.skill-card .skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-card .skill-tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ==========================================
   SIDE PROJECTS SECTION (Carousel Style)
   ========================================== */
.side-projects {
    padding: 3rem 0;
    background: var(--white);
    overflow: hidden;
}

.side-projects .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.side-projects .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Carousel Wrapper */
.projects-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    max-width: 100%;
}

/* Navigation Arrows */
.carousel-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    z-index: 10;
}

.carousel-arrow:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Carousel Container */
.projects-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.projects-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* Project Cards */
.project-card {
    flex-shrink: 0;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.project-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-card .project-info {
    text-align: center;
    flex: 1;
}

.project-card .project-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-card .project-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.project-card .arrow {
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
    transition: var(--transition);
}

.project-card:hover .arrow {
    transform: translateX(5px);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

/* Auto-scroll pause indicator */
.projects-carousel-wrapper:hover .projects-track {
    animation-play-state: paused;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .project-card {
        width: 280px;
        padding: 1.5rem 1rem;
    }

    .project-icon {
        width: 56px;
        height: 56px;
    }

    .project-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .projects-carousel-wrapper {
        gap: 0.5rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .project-card {
        width: 250px;
        padding: 1.25rem 1rem;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: 4rem 0;
    background: var(--primary-gradient);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-card a:hover {
    opacity: 0.8;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    text-align: left;
}

.footer-left .copyright {
    font-size: 0.9rem;
}

.footer-left .location {
    font-size: 0.85rem;
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

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

@keyframes bounceLeft {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
    }
}

@media (max-width: 900px) {

    .left-image img,
    .right-image img {
        width: 100px;
        height: 100px;
    }

    .hero-content {
        gap: 0;
    }

    .dropping-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }

    .hero {
        padding-top: 10px;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .hero-text {
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
    }

    .left-image,
    .right-image {
        display: none;
    }

    .dropping-image {
        width: 80px;
        height: 80px;
    }

    .skills {
        padding: 2rem 0;
    }

    .contact {
        padding: 2rem 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-medium);
        transform: translateY(-150%);
        transition: var(--transition);
        gap: 0;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        padding: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left {
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}