:root {
    --bg-color: #ffffff;
    --text-color: #2c3e50;
    --primary-color: #2c3e50;
    --secondary-color: #f8f9fa;
    --border-color: #e9ecef;
    --accent-color: #e74c3c;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="dark"] {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --primary-color: #ffffff;
    --secondary-color: #1a1a1a;
    --border-color: #333333;
    --accent-color: #ff6b6b;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

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

.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar {
    background: rgba(15,15,15,0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle, .mobile-toggle {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover, .mobile-toggle:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.mobile-toggle {
    display: none;
}

.hero {
    background: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    padding: 30px 0 clamp(60px, 12vh, 80px);
    margin-top: 70px;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.05;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    width: 100%;
}

.hero-greeting {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-tagline {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 600;
    opacity: 0.9;
    color: var(--text-color);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.name-highlight {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle-separator {
    color: var(--accent-color);
    font-weight: bold;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    opacity: 0.9;
    line-height: 1.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 6vw, 4rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.hero-stats .stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: clamp(0.8rem, 3vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

.cta-btn {
    padding: clamp(0.8rem, 2.5vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border: none;
    border-radius: 50px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: clamp(140px, 25vw, 180px);
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.4s;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

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

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

.cta-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-btn.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cta-btn.secondary:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.about, .skills, .projects, .contact, .experience {
    padding: clamp(30px, 6vw, 50px) 0;
}

.about {
    background: var(--secondary-color);
}

.experience {
    background: var(--bg-color);
}

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

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
}

.timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

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

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-date {
    flex: 0 0 120px;
    text-align: center;
    font-weight: 600;
    color: var(--accent-color);
    padding: 1rem;
}

.timeline-content {
    flex: 1;
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin: 0 2rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

.timeline-content p {
    opacity: 0.8;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-tech span:hover {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.view-details-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    text-align: left;
}



/* View Project Button Styling */
.project-tech a {
    background: transparent;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    animation: gradientShift 3s ease infinite;
    transition: all 0.3s ease;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.project-tech a:hover {
    transform: scale(1.05);
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -1px;
}

.contact-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 3rem;
}

.about p {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
}

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

.skill-item {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.skill-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.skill-progress {
    width: 100%;
    margin-top: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    transition: background 1.5s ease-in-out;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0.5rem;
    display: block;
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

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

.project-card {
    background: var(--secondary-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
}

.project-image {
    height: 160px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.project-content {
    padding: 1.5rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.project-card p {
    line-height: 1.5;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.contact {
    background: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-content {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .contact-item {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 0.8rem;
    }

    .contact-details h4 {
        font-size: 0.85rem;
    }

    .contact-details span {
        font-size: 0.9rem;
    }

    .social-links {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .social-icons {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .social-link {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-content {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .contact-item {
        padding: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .social-icons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .social-link {
        padding: 0.8rem;
        justify-content: center;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.7rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.contact-icon {
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-details h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-details span {
    color: var(--text-color);
    opacity: 0.8;
}

.social-links {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.social-links h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.social-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--secondary-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.submit-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-icon {
    font-size: 1.1rem;
}

/* New Contact Section Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details-list {
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-svg-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.social-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.social-circle-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-circle-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.social-circle-link svg {
    width: 20px;
    height: 20px;
}

.modern-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.modern-submit-btn {
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.modern-submit-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

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

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

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section {
        order: 1;
    }
    
    .contact-info-section {
        order: 2;
    }
    
    .social-links-grid {
        justify-content: center;
    }

    .hero {
        padding: clamp(60px, 12vh, 100px) 0 clamp(40px, 8vh, 60px);
        min-height: 50vh;
    }

    .hero-stats {
        gap: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .cta-btn {
        width: clamp(200px, 60vw, 280px);
        padding: 0.9rem 1.5rem;
    }

    .hero-subtitle {
        flex-direction: column;
        gap: 0.3rem;
    }

    .subtitle-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: clamp(50px, 10vh, 80px) 0 clamp(30px, 6vh, 50px);
        min-height: 45vh;
        margin-top: 60px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-stats {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.6rem;
    }

    .cta-btn {
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-scroll-indicator {
        bottom: 1rem;
        font-size: 0.8rem;
    }
}

.footer {
    background: var(--bg-color);
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--border-color);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-btn {
        width: 200px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }

    .timeline-item::before {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-date {
        text-align: left;
        margin-bottom: 1rem;
    }

    .timeline-content {
        margin: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .about, .skills, .projects, .contact, .experience {
        padding: clamp(25px, 5vw, 40px) 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 80px 0 50px;
    }

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

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

    .skill-item {
        padding: 1.5rem 1rem;
    }

    .project-card .project-content {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
    }

    .social-icons {
        grid-template-columns: 1fr;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }
}


/* Capabilities Grid */
.capabilities-minimal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.capability-item {
    background: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.capability-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Enhanced Contact Section */
.contact-wrapper-enhanced {
    max-width: 900px;
    margin: 3rem auto;
}

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

.contact-info-enhanced h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: transparent;
    padding: 1.5rem 0;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.contact-card:hover {
    transform: translateX(10px);
    border-bottom-color: var(--accent-color);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background: var(--accent-color);
    transform: rotate(360deg);
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon svg {
    color: white;
}

.contact-card-content {
    flex: 1;
}

.contact-card-content h4 {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card-content p {
    font-size: 1.1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--primary-color);
}

.social-enhanced {
    margin: 3rem 0;
}

.social-enhanced h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.social-links-enhanced {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link-enhanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link-enhanced svg {
    width: 20px;
    height: 20px;
}

.social-link-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-link-enhanced.linkedin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.social-link-enhanced.github {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.social-link-enhanced.twitter {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-color);
    border: 2px solid #28a745;
    border-radius: 50px;
    margin-top: 2rem;
    font-weight: 600;
    color: #28a745;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Enhanced Footer */
.footer {
    background: var(--secondary-color);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-section a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0.3rem 0;
}

@media (max-width: 768px) {
    .capabilities-minimal {
        gap: 0.8rem;
    }
    
    .capability-item {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .social-links-enhanced {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-link-enhanced {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section a:hover {
        transform: translateX(0);
    }
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    color: var(--text-color);
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.close:hover {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    transform: rotate(90deg) scale(1.1);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.modal-header h2 {
    margin-bottom: 0.5rem;
}

.project-note {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
}

.modal-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.modal-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.section-icon {
    font-size: 1.5rem;
}

.section-text {
    opacity: 0.9;
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-section p {
    opacity: 0.9;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 150px;
}

.github-btn {
    background: #24292e;
    color: white;
}

.github-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.live-btn {
    background: var(--accent-color);
    color: white;
}

.live-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.view-details-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(5px);
}

.project-card {
    cursor: pointer;
}

@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 10% auto;
    }
    
    .modal-links {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

/* Typing Effect */
.typing-text {
    position: relative;
    min-width: 150px;
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    -webkit-text-fill-color: var(--accent-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


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

/* Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar scroll effect */
.navbar {
    transition: all 0.3s ease;
}

/* Button hover animations */
.cta-btn, .view-details-btn, .social-link-enhanced, .contact-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skill items hover */
.skill-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Project cards entrance */
.project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stats counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-item h3 {
    animation: countUp 0.6s ease forwards;
}

/* Capability items stagger */
.capability-item:nth-child(1) { animation-delay: 0.1s; }
.capability-item:nth-child(2) { animation-delay: 0.2s; }
.capability-item:nth-child(3) { animation-delay: 0.3s; }
.capability-item:nth-child(4) { animation-delay: 0.4s; }
.capability-item:nth-child(5) { animation-delay: 0.5s; }

/* Timeline items alternate animation */
.timeline-item:nth-child(odd) {
    animation: slideInLeft 0.6s ease forwards;
}

.timeline-item:nth-child(even) {
    animation: slideInRight 0.6s ease forwards;
}

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

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

/* Smooth transitions for theme toggle */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
