/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-gray: #f5f6fa;
    --dark-gray: #2c3e50;
    --transition: all 0.3s ease;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background: linear-gradient(to right, #1a1a2e, #16213e);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #4a90e2, #67b26f);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #4a90e2;
}

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

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(103, 178, 111, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 100%;
    animation: fadeIn 1.2s cubic-bezier(.39,.575,.56,1) both;
}

.profile-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2.5rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 0 50px rgba(74, 144, 226, 0.3);
}

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

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

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.5rem;
    color: #4a90e2;
    margin-bottom: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.cta-button, .secondary-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(.39,.575,.56,1);
    letter-spacing: 0.5px;
}

.cta-button {
    background: linear-gradient(45deg, #4a90e2, #67b26f);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.secondary-button {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.cta-button:hover, .secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.cta-button:hover {
    background: linear-gradient(45deg, #67b26f, #4a90e2);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: #4a90e2;
    transform: translateX(-50%) scale(1.1);
}

/* Gallery Section */
#gallery {
    background-color: var(--section-bg);
    padding: 5rem 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Footer Styles */
.footer-accent {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #4a90e2, #67b26f);
    border-radius: 8px 8px 0 0;
    margin-bottom: -6px;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    position: relative;
    margin-top: 4rem;
    box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem 2rem;
    gap: 2rem;
}

.footer-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 2rem 2rem 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: #fff;
    min-width: 220px;
    flex: 1 1 220px;
    margin-bottom: 1rem;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.footer-section h3 {
    color: #4a90e2;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.08rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #4a90e2;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: #4a90e2;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    padding: 1.2rem 2rem;
    text-align: center;
    border-radius: 0 0 32px 32px;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    nav ul {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        padding: 1rem;
    }

    nav ul li a {
        color: #fff;
        padding: 0.8rem 1rem;
        display: block;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #4a90e2;
    }

    .menu-btn {
        color: #fff;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

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

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

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    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(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* --- About Me Section --- */
#about {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4a5568;
}

/* --- Skills & Interests Section --- */
#skills {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 6rem 2rem;
    position: relative;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-list, .interests-list {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skills-list:hover, .interests-list:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.skills-list h3, .interests-list h3 {
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.skills-list ul, .interests-list ul {
    list-style: none;
    padding: 0;
}

.skills-list li, .interests-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
    color: #4a5568;
}

.skills-list li::before, .interests-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #4a90e2;
}

/* --- Projects Section --- */
#projects {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.project-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #4a90e2, #67b26f);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* --- Gallery Section (already styled above, just add more polish) --- */
#gallery {
    background: linear-gradient(120deg, #f3f4f6 0%, #e0e7ff 100%);
    padding: 5rem 2rem;
    margin-bottom: 3rem;
}
.gallery-grid {
    gap: 2.5rem;
}
.gallery-item {
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}
.gallery-overlay {
    border-radius: 0 0 18px 18px;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
}

/* --- Modern Professional Contact Section --- */
#contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 2rem;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -8px 32px rgba(37, 99, 235, 0.07);
    margin-bottom: 0;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}

.contact-info {
    background: linear-gradient(120deg, #233554 0%, #2c3e50 100%);
    color: #fff;
    padding: 56px 48px 48px 48px;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.13);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    min-width: 320px;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #4a90e2, #67b26f);
    border-radius: 22px 22px 0 0;
    z-index: 2;
}

.contact-info h3 {
    text-align: left;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    width: 100%;
    letter-spacing: 0.5px;
    color: #fff;
    z-index: 3;
}

.contact-info p {
    margin-bottom: 2.2rem;
    font-size: 1.13rem;
    width: 100%;
    color: #e0e0e0;
    z-index: 3;
}

.contact-details {
    width: 100%;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 3;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.3rem;
    margin-bottom: 0;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    transition: background 0.3s;
}

.contact-item:hover {
    background: rgba(74, 144, 226, 0.08);
}

.contact-item i {
    font-size: 2.1rem;
    color: #4a90e2;
    min-width: 2.3rem;
    text-align: center;
    margin-top: 2px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-item h4 {
    font-size: 1.13rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 0.2px;
}

.contact-item p {
    font-size: 1.08rem;
    color: #e0e0e0;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.social-links {
    display: flex;
    gap: 22px;
    margin-top: 0.5rem;
    z-index: 3;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4a90e2 0%, #67b26f 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.10);
    border: 2px solid transparent;
}

.social-link:hover {
    background: #fff;
    color: #4a90e2;
    transform: translateY(-3px) scale(1.12);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.18);
    border: 2px solid #4a90e2;
}

.contact-form {
    background: #fff;
    padding: 48px 40px 48px 40px;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.10);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 320px;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 7px;
    font-size: 1.08rem;
    transition: border 0.3s, box-shadow 0.3s;
    background: #f8f9fa;
    color: #1a1a2e;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.10);
}

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

.submit-button {
    background: linear-gradient(90deg, #4a90e2 0%, #67b26f 100%);
    color: #fff;
    padding: 14px 36px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1.13rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.10);
}

.submit-button:hover {
    background: linear-gradient(90deg, #67b26f 0%, #4a90e2 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(74, 144, 226, 0.18);
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 8px;
    }
    .contact-info, .contact-form {
        padding: 28px 12px;
        min-width: unset;
    }
}

/* --- Section Headings --- */
section h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    color: #1a1a2e;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4a90e2, #67b26f);
    border-radius: 2px;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .resume-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .resume-download,
    .resume-preview,
    .contact-info,
    .contact-form {
        padding: 20px;
    }
}

/* Resume Section */
#resume {
    padding: 100px 0;
    background-color: var(--light-gray);
}

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

.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.resume-download {
    text-align: center;
    padding: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
}

.resume-download i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.download-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: var(--transition);
}

.download-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.resume-preview {
    padding: 30px;
}

.resume-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    text-align: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.highlight-item i {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Enhanced Contact Section Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 48px 40px 48px 40px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-info h3 {
    text-align: left;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    width: 100%;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.contact-details {
    width: 100%;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0;
}

.contact-item i {
    font-size: 2rem;
    color: #4a90e2;
    min-width: 2.2rem;
    text-align: center;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-item h4 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.contact-item p {
    font-size: 1.08rem;
    color: #e0e0e0;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.social-link:hover {
    background: #4a90e2;
    color: #fff;
    transform: translateY(-3px) scale(1.08);
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 8px;
    }
    .contact-info, .contact-form {
        padding: 28px 12px;
    }
}

/* --- Responsive Design for All Devices --- */
@media (max-width: 1200px) {
    .footer-content, .projects-grid, .gallery-grid, .skills-container, .resume-content, .contact-container {
        max-width: 98vw;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 900px) {
    header nav {
        padding: 1rem 2%;
    }
    .footer-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .footer-section {
        min-width: 0;
        padding: 1.5rem 1rem 1rem 1rem;
    }
    .resume-content, .contact-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 8px;
    }
    .resume-download, .resume-preview, .contact-info, .contact-form {
        padding: 28px 12px;
        min-width: unset;
    }
    .gallery-grid, .projects-grid, .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .profile-image {
        width: 140px;
        height: 140px;
    }
    #hero h1 {
        font-size: 2rem;
    }
    .hero-content {
        padding: 1.2rem;
    }
}

@media (max-width: 600px) {
    header nav {
        padding: 0.7rem 1%;
    }
    .logo {
        font-size: 1.1rem;
    }
    .hero-content {
        padding: 0.7rem;
    }
    .profile-image {
        width: 90px;
        height: 90px;
    }
    #hero h1 {
        font-size: 1.3rem;
    }
    .tagline {
        font-size: 1rem;
    }
    .cta-button, .secondary-button {
        font-size: 0.95rem;
        padding: 0.7rem 1.2rem;
    }
    section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    .about-content, .skills-list, .interests-list, .project-card, .resume-download, .resume-preview, .contact-info, .contact-form {
        padding: 0.7rem 0.3rem;
        border-radius: 10px;
    }
    .footer-section {
        padding: 1rem 0.5rem 0.7rem 0.5rem;
        border-radius: 10px;
    }
    .footer-bottom {
        font-size: 0.9rem;
        border-radius: 0 0 10px 10px;
    }
    .gallery-item img {
        height: 160px;
    }
    .contact-item i {
        font-size: 1.3rem;
        min-width: 1.5rem;
    }
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .submit-button {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
}

@media (max-width: 400px) {
    .hero-content, .about-content, .skills-list, .interests-list, .project-card, .resume-download, .resume-preview, .contact-info, .contact-form {
        padding: 0.3rem 0.1rem;
        border-radius: 6px;
    }
    .footer-section {
        padding: 0.5rem 0.2rem 0.4rem 0.2rem;
        border-radius: 6px;
    }
    .footer-bottom {
        font-size: 0.8rem;
        border-radius: 0 0 6px 6px;
    }
    .gallery-item img {
        height: 100px;
    }
}

/* Ensure no horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Make forms and buttons touch-friendly */
input, textarea, button {
    font-size: 1em;
    touch-action: manipulation;
} 