/* ============================================
   Minimal Developer Portfolio
   Clean, Simple, White-Dominant Design
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Ensure all direct body children are above canvas */
body>*:not(#floating-shapes-canvas) {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #1a1a1a;
}

/* === LANGUAGE SWITCHER === */
.lang-switcher {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 3px rgba(147, 112, 219, 0.15);
    border-color: rgba(147, 112, 219, 0.2);
}

.lang-switcher:active {
    transform: translateY(0) scale(0.98);
}

.lang-text {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    display: block;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switcher:hover .lang-text {
    transform: scale(1.05);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    padding: 180px 0 120px;
    text-align: center;
    overflow: hidden;
}

.hero-greeting {
    font-size: 18px;
    color: #666;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 24px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Ensure hero content is above canvas */
.hero .container,
.section .container {
    position: relative;
    z-index: 1;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14),
        0 12px 32px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === SECTIONS === */
.section {
    padding: 80px 0;
}

.section-alt {
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

/* === SKILLS GRID === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-card {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
        0 12px 40px rgba(0, 0, 0, 0.06);
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06),
        0 20px 50px rgba(0, 0, 0, 0.09);
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* === WHAT I DO NARROW CONTAINER === */
.what-i-do-container {
    max-width: 720px;
    margin: 0 auto;
}

.skill-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.skill-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* === SKILL CARDS LARGE (Glassmorphism) === */
.skill-card-large {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03),
        0 20px 60px rgba(0, 0, 0, 0.05);
}

.skill-card-large:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-4px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.12);
}

.skill-card-large:last-child {
    margin-bottom: 0;
}

.skill-card-image {
    flex: 0 0 220px;
    width: 220px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px;
}

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

.skill-card-content {
    flex: 1;
    min-width: 0;
}

.skill-card-title {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.skill-card-text {
    font-size: 15px;
    line-height: 1.65;
    color: #444;
}

/* Responsive for skill cards large */
@media (max-width: 768px) {

    .skill-card-large,
    .skill-card-large.skill-card-reverse {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .skill-card-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
        height: 180px;
    }
}

/* === WHO AM I SECTION === */
.who-am-i-content {
    max-width: 800px;
    margin: 0 auto;
}

.bio-text {
    text-align: left;
}

.bio-intro,
.bio-details,
.bio-philosophy {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}

.bio-intro {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
}

.bio-philosophy {
    margin-bottom: 0;
    font-style: italic;
    color: #555;
}

/* === CERTIFICATIONS GRID === */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.03);
}

.cert-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.9);
}

.cert-badge {
    font-size: 40px;
    margin-bottom: 16px;
}

.cert-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.cert-issuer {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.cert-date {
    font-size: 13px;
    color: #999;
}

/* === PROJECTS GRID === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.95);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.project-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.project-tag {
    font-size: 12px;
    padding: 4px 12px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 12px;
    font-weight: 500;
}

.project-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.project-tech span {
    font-size: 13px;
    padding: 6px 14px;
    background-color: #f9f9f9;
    color: #666;
    border-radius: 4px;
    font-weight: 500;
}

/* === CONTACT SECTION === */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-form {
    text-align: left;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: border-color 0.2s;
    background-color: #ffffff;
    color: #1a1a1a;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

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

.contact-form .btn-primary {
    width: 100%;
    margin-top: 8px;
}

/* === INTL TEL INPUT CUSTOMIZATION === */
.iti {
    width: 100%;
}

.iti__country-container {
    padding: 2px;
}

.iti__selected-country {
    padding: 0 8px 0 12px !important;
    border-radius: 6px 0 0 6px;
}

.iti__country-list {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.phone-input-container input {
    padding-left: 105px !important; /* Increased significantly to clear dial code + flag */
}

/* Ensure the country selector doesn't overlap text */
.iti--separate-dial-code .iti__selected-dial-code {
    margin-left: 8px;
    font-size: 15px;
    color: #1a1a1a;
}

.iti__flag-container {
    padding: 2px;
}

/* === FORM MESSAGES === */
.form-message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* === LOADING BUTTON STATE === */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}


/* === FOOTER === */
.footer {
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0;
}

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

.footer-content p {
    color: #666;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1a1a1a;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

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

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .skills-grid,
    .certifications-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .hero-cta .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .skill-card-large {
        gap: 32px;
        padding: 32px 24px;
        text-align: center;
    }

    .skill-card-image {
        max-width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .phone-input-container input {
        padding-left: 100px !important; /* Adjusted for mobile view */
    }
}

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

    .nav-content {
        padding: 16px 0;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

/* === SMOOTH ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {

    .skill-card,
    .cert-card,
    .project-card {
        opacity: 0;
        animation: fadeInUp 0.6s ease-out forwards;
    }

    .skill-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .skill-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .skill-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* === LANGUAGE TRANSITION ANIMATIONS === */
.content-fade-out {
    animation: fadeOut 300ms cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.content-fade-in {
    animation: fadeIn 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}