@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

 :root {
    --bg: #0a0a0a;
    --surface: #161616;
    --surface-2: #1e1e1e;
    --text: #ffffff;
    --muted: #ababab;
    --primary: #ff004f;
    --primary-600: #e10045;
    --border: #262626;
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
    --radius: 16px;
    --radius-lg: 20px;
    --container-x: 10%;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
}

.sub-title {
    font-size: 80px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 20px;
}

#header {
    width: 100%;
    height: 100vh;
    background-image: url(BG.png);
    background-size: cover;
    background-position: center;
}

/* Center hero content */
#header .container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.container {
    padding: 10px var(--container-x);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px var(--container-x);
    backdrop-filter: none;
    background: transparent;
    border-bottom: none;
    z-index: 10;
}

.logo {
    width: 140px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--primary);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    transform: scale(1.1);
}

.header-text {
    margin-top: 0;
    font-size: 30px;
    text-align: left;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

/* Fade-up animation for hero text */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

.header-text p {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.header-text h1 {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.15s forwards;
}

/* Animated gradient text utility */
.gradient-text {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease infinite;
}

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

/* Scroll reveal animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .header-text p,
    .header-text h1,
    .gradient-text,
    .reveal-on-scroll {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* About Section Redesign */
#about {
    padding: 100px 0;
    background: var(--bg);
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-profile {
    display: flex;
    justify-content: center;
}

.profile-image {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

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

.profile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.profile-image:hover .profile-overlay {
    transform: translateY(0);
}

.profile-info h3 {
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--muted);
    font-size: 14px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* Tab Navigation */
.about-tabs {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text);
    background: var(--surface);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--surface);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.tab-btn i {
    font-size: 16px;
}

/* Tab Content */
.tab-content {
    padding: 40px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--surface-2);
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

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

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

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--surface);
}

.timeline-content {
    background: var(--surface-2);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-left: 20px;
}

.timeline-date {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}



/* Services Section Redesign */
#services {
    padding: 100px 0;
    background: var(--bg);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 36px;
    color: var(--text);
}

.service-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: rgba(255, 0, 79, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 0, 79, 0.2);
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-item {
    background: var(--surface-2);
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--primary-600);
    transform: translateX(4px);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}


/* Portfolio Section Redesign */
#portfolio {
    padding: 100px 0;
    background: var(--bg);
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

.project-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: var(--text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.project-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: var(--surface-2);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
}




/* Contact Section Redesign */
#contact {
    padding: 100px 0;
    background: var(--bg);
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 24px;
    color: var(--text);
}

.info-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.info-content p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-600);
}

/* Social Section */
.social-section {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.social-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}

.social-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--surface-2);
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.social-link i {
    font-size: 20px;
    width: 20px;
    text-align: center;
}

.social-link span {
    font-size: 14px;
    font-weight: 500;
}

/* Contact Form Section */
.contact-form-section {
    position: relative;
}

.btn {
    display: block;
    margin: 50px 0;
    width: fit-content;
    border: 1px solid var(--primary);
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(180deg, rgba(255,0,79,0.15), rgba(255,0,79,0.05));
    transition: background 0.3s, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255,0,79,0.25);
}

.btn.btn2 {
    display: inline-block;
    background: transparent;
    cursor: pointer; 
}
.btn.btn2:hover {
    background: var(--primary);

}

/* Modern Contact Form Styles */
.form-container {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 600px;
}

.form-container h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.form-container p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 2px solid var(--border);
    outline: none;
    background: var(--surface-2);
    padding: 16px 20px;
    color: var(--text);
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(255, 0, 79, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: var(--text);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 0, 79, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Button States */
.submit-btn.sending {
    background: linear-gradient(135deg, #ff7aa2, #ff004f);
    cursor: not-allowed;
}

.submit-btn.sending:hover {
    transform: none;
    box-shadow: 0 6px 12px rgba(255, 0, 79, 0.2);
}

.submit-btn.success {
    background: linear-gradient(135deg, #61b752, #4a9d3a);
    cursor: not-allowed;
}

.submit-btn.success:hover {
    transform: none;
    box-shadow: 0 6px 12px rgba(97, 183, 82, 0.3);
}

.submit-btn.error {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    cursor: not-allowed;
}

.submit-btn.error:hover {
    transform: none;
    box-shadow: 0 6px 12px rgba(255, 71, 87, 0.3);
}

.form-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.form-message.success {
    background: rgba(97, 183, 82, 0.1);
    color: #61b752;
    border: 1px solid rgba(97, 183, 82, 0.2);
}

.form-message.error {
    background: rgba(255, 0, 79, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 0, 79, 0.2);
}


nav .fa-solid {
    display: none;
}
#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;
}

/* Tablet and small laptop */
@media only screen and (max-width: 1024px) {
    .container {
        padding: 10px 6%;
    }
    .header-text {
        margin-top: 18vh;
        font-size: 24px;
    }
    .header-text h1 {
        font-size: 48px;
    }
    .sub-title {
        font-size: 60px;
    }
    .about-col-1 img {
        width: 320px;
        margin-top: 140px;
    }
    .work-1-col-2,
    .work-2-col-2,
    .work-3-col-2,
    .work-4-col-2 {
        padding: 32px 24px;
    }
}

/* Large mobile / portrait tablet */
@media only screen and (max-width: 768px) {
    .container {
        padding: 10px 4%;
    }
    nav ul li a {
        font-size: 16px;
    }
    .sub-title {
        font-size: 50px;
    }
    .header-text h1 {
        font-size: 36px;
    }
    .row,
    .row1,
    .row2,
    .row3,
    .row4 {
        display: block;
    }
    .about-col-2,
    .work-1-col-2,
    .work-2-col-2,
    .work-3-col-2,
    .work-4-col-2 {
        flex-basis: 100%;
    }
    .about-col-1 img {
        width: 260px;
        margin: 40px auto 0;
    }
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        grid-gap: 24px;
        margin-top: 32px;
    }
}

@media only screen and (max-width: 500px) {
    #header {
        background-image: url(BGimageM.png);
    }

    .header-text {
        margin-top: 250px;
        font-size: 16px;
        text-align: left;
    }

    .header-text h1 {
        font-size: 27px;
    }

    nav .fa-solid {
        display: block;
        font-size: 25px;
        color: var(--text);
    }

    nav ul {
        background: var(--primary);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    nav .fa-solid.fa-bars {
        display: block;
        position: absolute;
        right: 20px;
        top: 18px;
        cursor: pointer;
        font-size: 28px;
        z-index: 11;
    }
    nav{
        align-items: normal;
    }
    .logo{
        margin-right: 150px;
    }



    .about-col-1 img {
        width: 0px;
    }

    .about-col-2 {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }
    
    .tab-content {
        padding: 20px 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-content {
        padding: 15px;
        margin-left: 15px;
    }

    .tab-title {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin: 20px 0 24px;
    }

    .tab-link {
        margin: 0;
        display: inline-block;
        padding: 8px 12px;
        font-size: 14px;
        line-height: 1;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: var(--surface);
        text-align: center;
        min-width: 80px;
    }

    .tab-link::after {
        display: none;
    }

    .tab-link.active-link {
        background: var(--primary);
        color: var(--text);
    }

    .tab-contant ul {
        padding-left: 0;
    }
    .tab-contant ul li {
        font-size: 16px;
        line-height: 1.6;
    }

    .work-1-col-1 img {
        width: 300px;
    }

    .work-2-col-1 img {
        width: 300px;
    }

    .work-3-col-1 img {
        width: 300px;
    }

    .work-4-col-1 img {
        width: 300px;
    }

    .row {
        display: block;
    }

    .sub-title {
        font-size: 40px;
    }

    .row1 {
        display: block;
        margin: 24px 0;
    }

    .work-1-col-1 { margin-bottom: 12px; }
    .work-1-col-2 {
        padding: 16px 16px;
        margin-top: 12px;
        border-radius: var(--radius);
        text-align: left;
    }

    .row2 {
        display: block;
        margin: 24px 0;
    }

    .work-2-col-1 { margin-bottom: 12px; }
    .work-2-col-2 {
        padding: 16px 16px;
        margin-top: 12px;
        border-radius: var(--radius);
        text-align: left;
    }

    .row3 {
        display: block;
        margin: 24px 0;
    }

    .work-3-col-1 { margin-bottom: 12px; }
    .work-3-col-2 {
        padding: 16px 16px;
        margin-top: 12px;
        border-radius: var(--radius);
        text-align: left;
    }

    .row4 {
        display: block;
        margin: 24px 0;
    }

    .work-4-col-1 { margin-bottom: 12px; }
    .work-4-col-2 {
        padding: 16px 16px;
        margin-top: 12px;
        border-radius: var(--radius);
        text-align: left;
    }

    /* Tighter image height on phones while keeping full image visible */
    .work-1-col-1 img,
    .work-2-col-1 img,
    .work-3-col-1 img,
    .work-4-col-1 img {
        height: 200px;
        object-fit: contain;
        background: var(--surface);
        border: 1px solid var(--border);
        padding: 6px;
        border-radius: var(--radius);
    }

    /* Typography tweaks inside cards */
    .work-1-col-2 h1,
    .work-2-col-2 h1,
    .work-3-col-2 h1,
    .work-4-col-2 h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .work-1-col-2 p,
    .work-2-col-2 p,
    .work-3-col-2 p,
    .work-4-col-2 p {
        font-size: 14px;
        line-height: 1.6;
    }

    #about {
        padding: 60px 0;
    }
    
    .about-header {
        margin-bottom: 40px;
    }
    
    .about-subtitle {
        font-size: 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .about-text h2 {
        font-size: 24px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 15px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 25px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-content {
        padding: 20px;
        margin-left: 15px;
    }
    
    /* Contact section mobile improvements */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-section {
        order: 1;
    }
    
    .social-section {
        margin-top: 30px;
    }
    
    .social-icons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-link {
        justify-content: center;
        padding: 12px 20px;
    }
    
    .info-card {
        margin-bottom: 20px;
        padding: 20px;
    }
}

/* Footer Styles */
#footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface-2);
    color: var(--muted);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--text);
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.contact-item i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-content p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    #footer {
        padding: 30px 0 15px;
    }
    
    .footer-section h3 {
        font-size: 20px;
    }
    
    .footer-section h4 {
        font-size: 16px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    .footer-bottom-content p {
        font-size: 12px;
    }

    #services {
        padding: 60px 0;
    }
    
    .services-header {
        margin-bottom: 40px;
    }
    
    .services-subtitle {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .service-icon i {
        font-size: 28px;
    }
    
    .service-content h3 {
        font-size: 20px;
    }
    
    .service-content p {
        font-size: 14px;
    }

    #portfolio {
        padding: 60px 0;
    }
    
    .portfolio-header {
        margin-bottom: 40px;
    }
    
    .portfolio-subtitle {
        font-size: 16px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-content h3 {
        font-size: 20px;
    }
    
    .project-content p {
        font-size: 13px;
    }
    
    .tech-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    #contact {
        padding: 60px 0;
    }
    
    .contact-header {
        margin-bottom: 40px;
    }
    
    .contact-subtitle {
        font-size: 16px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .info-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
    }
    
    .info-icon i {
        font-size: 20px;
    }
    
    .social-icons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .social-link {
        padding: 12px;
        justify-content: center;
    }
    
    /* Mobile contact form adjustments */
    .form-container {
        padding: 24px;
        margin-top: 20px;
    }
    
    .form-container h3 {
        font-size: 24px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}
