/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fff;
    --secondary-color: #a1a1aa;
    --accent-color: #2563eb;
    --nav-bg: #111114;
    --background: #181922;
    --card-bg: rgba(36, 37, 46, 0.85);
    --icon-bg: rgba(36, 37, 46, 0.7);
    --border-color: #232334;
}

body, h1, h2, h3, h4, h5, h6, p, a, span, div, li {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    background: var(--background);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: linear-gradient(-45deg, #2563eb, #a855f7, #14b8a6, #232334);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.7;
    pointer-events: none;
    filter: blur(2px) brightness(0.7);
}
@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Animated Gradient Headings */
h2, h3, .logo {
    background: linear-gradient(90deg, #2563eb, #a855f7, #14b8a6, #2563eb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s ease-in-out infinite;
    font-weight: 900;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; 
    left: 0;
    right: 0;
    background-color: var(--nav-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.3rem 1.3rem;
    ;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-icon:hover {
    transform: scale(1.15);
}

.logo i {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.15rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 2rem 2rem;
    background: none;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    font-weight: revert ;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 17rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn.primary:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn.secondary:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Skills Section */
.skills-section {
    padding: 4rem 2rem;
    background: var(--bg-color);
}

.skills-section h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 800;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.skill-category {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-category h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-item {
    background: linear-gradient(90deg, #308685e8, rgba(0, 0, 0, 0.10));
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, background 0.2s;
    letter-spacing: 0.5px;
}

.skill-item:hover {
    transform: scale(1.08);
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: none;
    z-index: 1;
    position: relative;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 0;
}

.about-flex {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.about-text {
    flex: 2;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.about-content p {
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    text-align: justify;
}

.stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 0;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.about-details {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: nowrap;
}
.about-detail {
    color: var(--secondary-color);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
}
.about-detail i {
    background: linear-gradient(135deg, #2563eb 40%, #a855f7 100%);
    color: #fff !important;
    border-radius: 50%;
    padding: 0.4em;
    font-size: 1.3em;
    box-shadow: 0 2px 8px #2563eb33;
    margin-right: 0.5em;
    transition: background 0.3s, box-shadow 0.3s;
}
.about-detail:hover i {
    background: linear-gradient(135deg, #14b8a6 40%, #2563eb 100%);
    box-shadow: 0 4px 16px #14b8a633;
}

.summary-section {
    padding: 5rem 2rem 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
}
.summary-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    text-align: left;
}

.projects-section {
    padding: 5rem 2rem 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
}
.projects-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    text-align: left;
}

.project-meta {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.7rem;
    font-style: italic;
}

.achievements-section {
    padding: 5rem 2rem 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
}
.achievements-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    text-align: left;
}
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.achievement {
    background: rgba(36, 37, 46, 0.55);
    padding: 1.2rem 1rem;
    border-radius: 2rem;
    color: var(--primary-color);
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border: 1.5px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}
.achievement i {
    background: linear-gradient(135deg, #2563eb 40%, #a855f7 100%);
    color: #fff !important;
    border-radius: 50%;
    padding: 0.4em;
    font-size: 1.3em;
    box-shadow: 0 2px 8px #2563eb33;
    margin-right: 0.5em;
    transition: background 0.3s, box-shadow 0.3s;
}
.achievement:hover {
    transform: translateY(-8px) scale(1.04) rotate(-1deg);
    box-shadow: 0 12px 36px 0 rgba(80, 70, 255, 0.18), 0 0 0 4px #2563eb33;
    border: 1.5px solid #2563eb88;
}
.achievement:hover i {
    background: linear-gradient(135deg, #14b8a6 40%, #2563eb 100%);
    box-shadow: 0 4px 16px #14b8a633;
}

/* Experience Section */
.experience-section {
    padding: 5rem 2rem;
    background: none;
    z-index: 1;
    position: relative;
}

.experience-section h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 800;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(36, 37, 46, 0.55);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border: 2.5px solid var(--accent-color);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px 0 rgba(80, 70, 255, 0.18), 0 0 0 4px #2563eb33;
    border: 1.5px solid #2563eb88;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card h3 i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.project-meta {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.project-card li {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.5;
}

.project-card li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: none;
    z-index: 1;
    position: relative;
}

.contact-section h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 800;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    word-break: break-all;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    background: linear-gradient(135deg, #2563eb 40%, #a855f7 100%);
    color: #fff !important;
    border-radius: 50%;
    padding: 0.4em;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px #2563eb33;
    margin-right: 0.5em;
    transition: background 0.3s, box-shadow 0.3s;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Social Icon Glow */
.social-link:hover i {
    box-shadow: 0 0 12px #a855f7, 0 0 24px #2563eb;
    background: linear-gradient(135deg, #a855f7 40%, #2563eb 100%);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: none;
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-flex {
        flex-direction: column;
        gap: 2rem;
    }
    .stats {
        flex-direction: row;
        gap: 2rem;
        justify-content: flex-start;
    }
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .hero-content, .about-content, .contact-content {
        text-align: left;
        color: aliceblue;
    }
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    .about-content {
        padding: 0;
    }
    .about-flex {
        flex-direction: column;
        gap: 1rem;
    }
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    h2, h3, .logo {
        font-size: 1.3rem;
    }
}

/* Section Fade-in Animation */
section {
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInSection 1.1s cubic-bezier(.4,0,.2,1) forwards;
    animation-delay: 0.2s;
}
@keyframes fadeInSection {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Divider for clarity */
section {
    border-bottom: 1.5px solid #232334;
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Button Glow */
.btn.primary {
    box-shadow: 0 0 16px 0 #2563eb55;
    position: relative;
    overflow: hidden;
}
.btn.primary::after {
    content: '';
    position: absolute;
    left: -50%;
    top: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #a855f7 40%, transparent 60%);
    opacity: 0.2;
    transition: opacity 0.3s;
    z-index: 0;
}
.btn.primary:hover::after {
    opacity: 0.5;
}

/* Extra Rounded and Spacing */
.skill-category, .project-card, .achievement {
    border-radius: 2rem;
    margin-bottom: 1.2rem;
} 

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-link:hover {
    color: var(--accent-color);
}

.dynamic-gradient-text {
    background: linear-gradient(90deg, #2563eb, #a855f7, #14b8a6, #fff, #2563eb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s ease-in-out infinite;
    font-weight: 900;
    font-size: xxx-large;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gallery-section {
    padding: 5rem 2rem;
    background: none;
    z-index: 1;
    position: relative;
}

.gallery-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    text-align: left;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    background: rgba(36, 37, 46, 0.55);
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border: 2px solid var(--accent-color);
    text-align: center;
}

.gallery-item img {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1rem;
    object-fit: cover;
    max-height: 200px;
}

.gallery-item p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
}

.center-item {
    grid-column: 1 / -1;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    background: #181922;
    border: 2px solid #333;
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    gap: 1.5rem;
    transition: border 0.3s;
    min-height: 140px;
    animation: borderMove 4s linear infinite;
}

.contact-card .contact-icon {
    background: linear-gradient(135deg, #14b8a6 40%, #2563eb 100%);
    border-radius: 1rem;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-right: 1rem;
}

.contact-label {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact-info {
    font-size: 1.1rem;
    color: #fff;
}



.contact-card.highlight .contact-info {
    font-size: 0.91rem;
}

@media (max-width: 700px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1.2rem 1rem;
        min-height: unset;
    }
    .contact-card .contact-icon {
        margin-right: 0;
        margin-bottom: 0.7rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .about-flex {
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1, h2, h3 {
        font-size: 1.5rem !important;
    }
    .btn, .btn.primary, .btn.secondary {
        font-size: 1rem;
        padding: 0.6rem 1.1rem;
    }
    .navbar {
        padding: 0.5rem 0;
    }
    .nav-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    section {
        padding: 2rem 0.5rem;
    }
}

@media (max-width: 500px) {
    .hero h1, h2, h3 {
        font-size: 1.1rem !important;
    }
    .btn, .btn.primary, .btn.secondary {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
    }
    .contact-card {
        padding: 0.7rem 0.5rem;
    }
    .gallery-item img {
        max-height: 120px;
    }
    .logo {
        font-size: 1rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-content {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem;
    }

    .hero {
        padding: 6rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .skills-grid {
        gap: 2rem;
    }
    
    .skill-category {
        margin: 0.3rem;
    }
}

/* Tablet and Smaller Desktop */
@media (max-width: 1024px) {
    .skills-grid, .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-flex {
        flex-direction: column;
    }

    .stats {
        margin-top: 2rem;
    }

    .gallery-item img {
        height: 250px;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-info {
        font-size: 0.9rem;
    }

    section {
        padding: 3rem 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile Devices */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-info {
        font-size: 0.85rem;
    }

    .gallery-item img {
        height: 200px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* Center specific skill categories */
.skill-category:nth-last-child(-n+2) {
    grid-column: span 1;
    max-width: 300px;
    margin: 0 auto;
}

.summary-section .skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.summary-section .skill-category:nth-last-child(-n+2) {
    grid-column: span 1;
    max-width: 300px;
}

.summary-section .skill-category:nth-last-child(2) {
    grid-column: 2;
}

.summary-section .skill-category:nth-last-child(1) {
    grid-column: 3;
}

@media (max-width: 1024px) {
    .summary-section .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-section .skill-category:nth-last-child(2) {
        grid-column: 1;
    }
    
    .summary-section .skill-category:nth-last-child(1) {
        grid-column: 2;
    }
}

@media (max-width: 480px) {
    .summary-section .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-section .skill-category:nth-last-child(2),
    .summary-section .skill-category:nth-last-child(1) {
        grid-column: 1;
    }
}

.contact-form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem 2rem 1rem;
    min-height: 60vh;
}

.contact-form-section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.contact-form {
    background: #181922;
    padding: 4.5rem 2.5rem;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
}

.form-group {
    width: 100%;
    margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--primary-color, #2563eb);
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #222;
    margin-top: 0.2rem;
    transition: border 0.2s;
    outline: none;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 2px solid var(--accent-color, #14b8a6);
}

.contact-form .btn.primary {
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color, #2563eb), var(--accent-color, #14b8a6));
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.contact-form .btn.primary:hover {
    background: linear-gradient(90deg, var(--accent-color, #14b8a6), var(--primary-color, #2563eb));
    transform: translateY(-2px) scale(1.03);
}

.form-success {
    color: #16a34a;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 600px) {
    .contact-form {
        padding: 1.2rem 0.5rem;
        min-width: unset;
        max-width: 98vw;
    }
    .contact-form-section h2 {
        font-size: 2rem;
    }
}

.contact-merged-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
    max-width: 900px;
    margin: 2.5rem auto 0 auto;
    width: 100%;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .contact-merged-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-info-cards, .contact-form {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
