/* ═══════════════════════════════════════════════════════════════
   Sivasuriya Portfolio — Ethereal Glass Design System (PHP)
   Premium Glassmorphism + Micro-animations
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #f0f4ff;
    --card: rgba(255, 255, 255, 0.55);
    --card-border: rgba(255, 255, 255, 0.45);
    --card-shadow: 0 8px 32px rgba(0, 88, 190, 0.06);
    --text: #111c2d;
    --text-secondary: #424754;
    --text-muted: #64748b;
    --primary: #0058be;
    --primary-light: #64a8fe;
    --primary-bg: rgba(0, 88, 190, 0.08);
    --accent-green: #25D366;
    --border: rgba(194, 198, 214, 0.3);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-full: 9999px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Ambient Background Orbs ─── */
.ambient-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.ambient-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.ambient-orbs .orb-1 {
    top: 5%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: hsla(210, 100%, 74%, 0.12);
}

.ambient-orbs .orb-2 {
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: hsla(340, 100%, 76%, 0.08);
}

.ambient-orbs .orb-3 {
    top: 50%;
    right: 30%;
    width: 400px;
    height: 400px;
    background: hsla(242, 100%, 70%, 0.1);
}

/* ─── Glass Panel ─── */
.glass {
    background: var(--card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

/* ─── Typography ─── */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 88, 190, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 88, 190, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent-green);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    background: #128C7E;
}

/* ─── Chip / Badge ─── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(240, 244, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.nav.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    background: none;
    border: none;
}

/* ─── Container ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

.hero .desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
    margin: 20px 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-social {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.hero-social a {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.hero-social a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.hero-card {
    display: flex;
    justify-content: flex-end;
}

.hero-card .card-wrap {
    position: relative;
}

.hero-card .card-border {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    border: 2px solid rgba(0, 88, 190, 0.15);
    transform: rotate(3deg);
}

.hero-card .card-inner {
    width: 340px;
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 32px 80px rgba(0, 88, 190, 0.1);
}

.hero-card .card-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    background: #e7eeff;
}

.hero-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card .card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px 4px;
}

.hero-card .card-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-card .card-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── Stats ─── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 48px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    padding: 32px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-card .label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Section ─── */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* ─── Skills Grid ─── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 24px;
}

.skill-card .skill-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.skill-card .skill-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.skill-card .skill-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.skill-card .skill-pct {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(194, 198, 214, 0.35);
    border-radius: 999px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    transition: width 1.5s ease;
}

/* ─── Timeline ─── */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(0, 88, 190, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.timeline-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-card {
    padding: 20px;
}

.timeline-card .type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.timeline-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 4px 0;
}

.timeline-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Portfolio Grid ─── */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    overflow: hidden;
    transition: transform 0.35s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card .card-thumb {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.project-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .card-thumb img {
    transform: scale(1.05);
}

.project-card .card-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card .card-body {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0 0 16px 16px;
}

.project-card .card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-card .card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Services ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: scale(1.01);
}

.service-card .svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card .svc-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card .features {
    list-style: none;
    margin-bottom: 24px;
}

.service-card .features li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.service-card .features li::before {
    content: '✓';
    font-weight: 700;
    color: #10b981;
    flex-shrink: 0;
}

.service-card .svc-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: right;
}

/* ─── Contact ─── */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    transform: scale(1.02);
}

.contact-card .c-icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-card .c-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-card .c-value {
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.glass-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: var(--text);
    transition: border-color 0.2s;
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.glass-input {
    resize: vertical;
    min-height: 120px;
}

/* ─── Footer ─── */
.footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

/* ─── Project Detail ─── */
.project-hero {
    padding: 120px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-hero .breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.project-hero .breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.meta-card {
    padding: 20px;
}

.meta-card .meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meta-card .meta-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.project-section {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* ─── Achievements ─── */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.achievement-card {
    padding: 24px;
    border-left: 4px solid var(--primary);
}

.achievement-card .ach-date {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 8px;
}

.achievement-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.achievement-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero .desc {
        margin: 20px auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-card {
        justify-content: center;
    }

    .hero-card .card-inner {
        width: 260px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(240, 244, 255, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        z-index: 200;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
        z-index: 300;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease both;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease both;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}