/* 
 * Shivam Patsariya - UX Designer Portfolio
 * Main Stylesheet
 */

/* ===== AOS Animation Fallbacks ===== */
/* Ensure content is visible if AOS doesn't load or is disabled */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* AOS will override these when it loads */
html.aos-animate [data-aos] {
    opacity: 0;
    transform: translateY(20px);
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile optimization - reduce animations on small screens */
@media (max-width: 768px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== Basic Reset & Global Styles ===== */

/* Skip Navigation Link for Accessibility */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-nav:focus {
    top: 6px;
    outline: 2px solid var(--dark-color);
    outline-offset: 2px;
}

/* Global Focus Styles */
*:focus:not(input):not(textarea) {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Form Error Messages */
.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.error-message.visible {
    display: block;
}

.form-help {
    color: var(--gray-color);
    font-size: 0.875rem;
    margin-top: 4px;
}

:root {
    --primary-color: #C6E7FF;        /* Soft Blue */
    --secondary-color: #FFDDAE;       /* Warm Peach */
    --accent-color: #D4F6FF;          /* Light Cyan */
    --dark-color: #2c3e50;            /* Soft Dark Blue */
    --light-color: #FBFBFB;           /* Almost White */
    --gray-color: #6c757d;            /* Soft Gray */
    --text-color: #2c3e50;            /* Soft Dark for text */
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    
    /* Additional color variations */
    --primary-dark: #a3d4f7;          /* Darker primary */
    --secondary-dark: #ffcc85;        /* Darker secondary */
    --text-light: rgba(44, 62, 80, 0.7);
    --shadow-light: rgba(198, 231, 255, 0.3);
    --shadow-warm: rgba(255, 221, 174, 0.3);
}

/* Prevent horizontal overflow globally */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    /* margin-top: 100px; */
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: 100px 0;
    width: 100%;
    overflow-x: hidden;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--dark-color);
    border: 2px solid transparent;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-light);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--dark-color);
    border: 2px solid var(--secondary-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-warm);
}

.highlight {
    color: #2c3e50;
    font-weight: 700;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 10;
    padding-top: 20px;
}

.section-line {
    height: 4px;
    width: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    margin-top: 15px;
    border-radius: 2px;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    padding: 20px 30px;
    border-radius: 100px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(198, 231, 255, 0.4);
    background: linear-gradient(135deg, rgba(251, 251, 251, 0.9), rgba(212, 246, 255, 0.8));
    border: 1px solid rgba(198, 231, 255, 0.3);
}

.header.scrolled {
padding: 20px 30px;
    background: linear-gradient(135deg, rgb(251 251 251 / 95%), rgb(212 246 255 / 85%));
    box-shadow: 0 5px 30px rgba(198, 231, 255, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

.nav-menu ul {
    display: flex;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-200%);
    width: 90%;
    max-width: 300px;
    background: linear-gradient(135deg, rgba(251, 251, 251, 0.95), rgba(212, 246, 255, 0.9));
    padding: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: var(--transition);
    z-index: 999;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(198, 231, 255, 0.3);
    border-radius: 15px;
}

.mobile-menu.active {
    transform: translateX(-50%) translateY(0);
}

.mobile-menu ul li {
    margin: 15px 0;
}

.mobile-menu ul li a {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.mobile-menu ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    padding: 180px 0 100px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-greeting {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.hero-greeting::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-50%);
    border-radius: 2px;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

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

.hero-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-color), rgba(255, 255, 255, 0.9));
    color: var(--dark-color);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid rgba(198, 231, 255, 0.3);
}

.hero-social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-light);
}

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

.image-cutout {
    position: relative;
    width: 400px;
    height: 500px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 60px var(--shadow-light);
    animation: morphing 10s linear infinite alternate;
    border: 3px solid rgba(198, 231, 255, 0.5);
}

.image-cutout img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-stats-highlight {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.stat-highlight {
    background: linear-gradient(135deg, rgba(251, 251, 251, 0.95), rgba(212, 246, 255, 0.9));
    padding: 8px 12px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-light);
    text-align: center;
    min-width: 100px;
    border: 1px solid rgba(198, 231, 255, 0.3);
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-color);
}

@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-scroll {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.hero-scroll a:hover {
    color: #2c3e50;
}

.hero-scroll span {
    margin-bottom: 5px;
}

.hero-scroll i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section subheadings */
.section-subheading {
    text-align: center;
    color: var(--text-light);
    margin-top: 15px;
    margin-bottom: 50px;
    font-size: 1.1rem;
    clear: both;
    position: relative;
    z-index: 5;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        margin-bottom: 50px;
    }
    
    .hero-greeting {
        padding-left: 0;
    }
    
    .hero-greeting::before {
        display: none;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-social-links {
        justify-content: center;
    }
    
    .image-cutout {
        width: 300px;
        height: 400px;
    }
}

/* ===== About Section ===== */
.about-section {
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(212, 246, 255, 0.3) 100%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 25px;
}

.about-details {
    margin: 30px 0;
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
}

.detail-label {
    width: 120px;
    font-weight: 600;
}

.detail-value {
    color: var(--gray-color);
}

.download-cv {
    display: inline-flex;
    align-items: center;
}

.download-cv i {
    margin-left: 8px;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(212, 246, 255, 0.6));
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(198, 231, 255, 0.3);
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-light);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(198, 231, 255, 0.4));
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* ===== Experience Section ===== */
.experience-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(251, 251, 251, 1) 100%);
}

.experience-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.experience-timeline::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: 3px solid var(--light-color);
    box-shadow: 0 4px 12px rgba(255, 221, 174, 0.6);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    min-height: 80px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 2;
    border: 3px solid var(--light-color);
    box-shadow: 0 4px 12px rgba(198, 231, 255, 0.4);
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(198, 231, 255, 0.3), rgba(255, 221, 174, 0.3));
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

.timeline-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(212, 246, 255, 0.5));
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    width: calc(50% - 30px);
    position: relative;
    border: 1px solid rgba(198, 231, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-light);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 28px;
    left: -8px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(212, 246, 255, 0.5));
    transform: rotate(45deg);
    border-left: 1px solid rgba(198, 231, 255, 0.3);
    border-bottom: 1px solid rgba(198, 231, 255, 0.3);
    z-index: -1;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 28px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(212, 246, 255, 0.5));
    transform: rotate(45deg);
    border-right: 1px solid rgba(198, 231, 255, 0.3);
    border-top: 1px solid rgba(198, 231, 255, 0.3);
    z-index: -1;
}

.timeline-content .date {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--dark-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(198, 231, 255, 0.3);
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
    font-weight: 700;
}

.timeline-content h4 {
    color: var(--gray-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1rem;
}

.timeline-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.timeline-list {
    margin-top: 15px;
}

.timeline-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ===== Skills Section ===== */
.skills-section {
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(198, 231, 255, 0.2) 100%);
}

.skills-text {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.skills-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.skills-categories .skill-category:nth-child(3) {
    grid-column: 1 / -1;
}

.skill-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(212, 246, 255, 0.5));
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    border: 1px solid rgba(198, 231, 255, 0.3);
    backdrop-filter: blur(10px);
}

.skill-category h3 {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(198, 231, 255, 0.5);
    color: #2c3e50;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    gap: 20px;
}

.skill-item {
    margin-bottom: 5px;
}

.skill-name {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background: linear-gradient(135deg, rgba(198, 231, 255, 0.3), rgba(255, 221, 174, 0.3));
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(198, 231, 255, 0.2);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(198, 231, 255, 0.4), rgba(255, 221, 174, 0.4));
    color: var(--dark-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(198, 231, 255, 0.3);
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-light);
}

/* ===== Projects Section ===== */
.projects-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(251, 251, 251, 1) 100%);
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(198, 231, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(198, 231, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(198, 231, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(212, 246, 255, 0.4));
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-light);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(198, 231, 255, 0.8) 0%, 
        rgba(212, 246, 255, 0.9) 50%, 
        rgba(255, 221, 174, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    color: var(--dark-color);
    padding: 20px;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-item:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    margin-bottom: 5px;
}

.project-info p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.btn-view-project {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(251, 251, 251, 0.8));
    color: var(--dark-color);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid rgba(198, 231, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-view-project:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-warm);
}

/* ===== Certifications Section ===== */
.certifications-section, .organizations-section {
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(198, 231, 255, 0.2) 100%);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.cert-category {
    margin-bottom: 40px;
}

.cert-category-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(198, 231, 255, 0.5);
    color: #2c3e50 !important;
    font-weight: 600 !important;
    position: relative;
}

.certification-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(212, 246, 255, 0.5));
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(198, 231, 255, 0.3);
    backdrop-filter: blur(10px);
}

.certification-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-light);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(198, 231, 255, 0.4));
}

.certification-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.certification-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.certification-issuer {
    font-weight: 500;
    color: var(--gray-color);
    margin-bottom: 5px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.certification-date {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.certification-link {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.certification-link i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* ===== Contact Section ===== */
.contact-section {
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(212, 246, 255, 0.4) 100%);
    padding: 100px 0;
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c3e50 !important;
    color: white !important;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-text p {
    margin-bottom: 0;
    color: var(--gray-color);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(212, 246, 255, 0.7));
    color: var(--dark-color);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: var(--transition);
    border: 2px solid rgba(198, 231, 255, 0.3);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.contact-form {
    flex: 1;
    min-width: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(212, 246, 255, 0.5));
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-light);
    border: 1px solid rgba(198, 231, 255, 0.3);
    backdrop-filter: blur(15px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Fieldset styling */
fieldset {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

legend {
    margin: 0 !important;
    padding: 0 !important;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(198, 231, 255, 0.4);
    border-radius: 10px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    max-width: 100%;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(198, 231, 255, 0.5) !important;
    outline: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.95);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px var(--shadow-warm);
}

.field-error {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error::before {
    content: '⚠';
    font-size: 0.9rem;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
}

.contact-form button i {
    font-size: 1rem;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--secondary-color);
}

.error-message {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

.form-response {
    margin-top: 20px;
}

.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.success::before {
    content: '✓';
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.error::before {
    content: '✗';
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button loading state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav ul li a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }

    .hero-section {
        padding: 140px 0 80px;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        padding-right: 0;
        text-align: center;
        margin-bottom: 50px;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form {
        padding: 30px 25px;
    }

    .contact-info h3 {
        font-size: 1.6rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .experience-timeline::before {
        left: 15px;
        height: calc(100% - 20px);
    }

    .experience-timeline::after {
        left: 15px;
        bottom: 20px;
        width: 10px;
        height: 10px;
        border: 2px solid var(--light-color);
    }

    .timeline-dot {
        left: 15px;
        top: 20px;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        padding: 25px 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: calc(100vw - 70px);
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -8px;
        right: auto;
        top: 24px;
        width: 16px;
        height: 16px;
        border: 1px solid rgba(198, 231, 255, 0.3);
        border-right: none;
        border-top: none;
    }

    .timeline-item {
        margin-bottom: 40px;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 32px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header {
        position: fixed;
        top: 20px;
        left: 0;
        right: 0;
        width: 90%;
        max-width: 350px;
        margin: 0 auto;
        z-index: 1000;
        backdrop-filter: blur(15px);
        transition: var(--transition);
        padding: 15px 0;
        border-radius: 50px;
        box-shadow: 0 10px 40px rgba(198, 231, 255, 0.4);
        background: linear-gradient(135deg, rgba(251, 251, 251, 0.9), rgba(212, 246, 255, 0.8));
        border: 1px solid rgba(198, 231, 255, 0.3);
    }

    .logo-img {
        height: 38px;
        max-width: 130px;
    }
    
    

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .certification-item {
        padding: 20px;
    }
    
    .certification-content h3 {
        font-size: 1.1rem;
    }

    .image-cutout {
        bottom: 32px;
        width: 280px;
        height: 280px;
    }

    .skill-category {
        padding: 25px 20px;
    }

    .about-stats {
        gap: 20px;
    }

    .contact-content {
        flex-direction: column;
        gap: 25px;
        margin-top: 30px;
    }

    .contact-form {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .contact-info p {
        text-align: center;
    }

    .contact-details {
        margin-bottom: 25px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 25px;
    }

    .contact-icon {
        margin: 0 auto 10px auto;
    }

    .social-links {
        justify-content: center;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .contact-form button {
        padding: 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 40px;
    }

    .experience-timeline {
        max-width: 100%;
        margin: 0;
    }

    .experience-timeline::before {
        left: 15px;
    }

    .timeline-dot {
        left: 15px;
    }

    .timeline-content {
        width: calc(100% - 45px);
        margin-left: 45px !important;
        padding: 20px 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: calc(100vw - 60px);
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -8px;
        right: auto;
        width: 16px;
        height: 16px;
    }

    .skill-category {
        padding: 20px 15px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .hero-section {
        padding: 120px 0 60px;
    }

    .logo-img {
        height: 32px;
        max-width: 110px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .projects-filter {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        border-width: 1px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .timeline-content {
        padding: 20px;
    }

    /* Skills section responsive */
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skills-categories .skill-category:nth-child(3) {
        grid-column: 1;
    }

    /* Contact section mobile optimization */
    .contact-section {
        padding: 60px 0;
    }

    .contact-content {
        gap: 20px;
        margin-top: 20px;
    }

    .contact-form {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .contact-info h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .contact-item {
        margin-bottom: 20px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-text h4 {
        font-size: 1rem;
    }

    .contact-text p {
        font-size: 0.9rem;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .contact-form button {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--dark-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(198, 231, 255, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(198, 231, 255, 0.6);
}

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

/* Responsive adjustments for scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }
}

/* ===== Expandable Timeline Styles ===== */
.timeline-expandable {
    position: relative;
}

.timeline-details {
    overflow: hidden;
    transition: all 0.4s ease;
    max-height: 0;
    opacity: 0;
}

.timeline-details.expanded {
    max-height: 1000px;
    opacity: 1;
    margin-top: 10px;
}

.timeline-toggle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(198, 231, 255, 0.3);
}

.timeline-toggle:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198, 231, 255, 0.4);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.timeline-toggle[data-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.timeline-toggle[data-expanded="true"] .toggle-text::after {
    content: " less";
}

.timeline-toggle[data-expanded="false"] .toggle-text::after {
    content: " more";
}

.timeline-toggle .toggle-text {
    font-size: 0.85rem;
}

/* Responsive adjustments for timeline toggle */
@media (max-width: 768px) {
    .timeline-toggle {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 16px;
    }
    
    .timeline-details.expanded {
        max-height: 600px;
    }
}