/* ==========================================================================
   JK APPSIVORA - PREMIUM CORPORATE STYLE SYSTEM
   ========================================================================== */

/* --- Design Tokens --- */
:root {
    /* Colors - Neon Cyber Cyan & Deep Violet Theme */
    --clr-bg: hsl(230, 24%, 4%);
    --clr-bg-surface: hsl(230, 24%, 7%);
    --clr-bg-card: hsla(230, 24%, 9%, 0.7);
    --clr-border: hsla(230, 24%, 15%, 0.6);
    --clr-border-glow: hsla(180, 100%, 50%, 0.25);
    
    --clr-primary: hsl(180, 100%, 48%);       /* Neon Cyan */
    --clr-primary-glow: hsla(180, 100%, 50%, 0.12);
    --clr-secondary: hsl(272, 95%, 58%);      /* Cyber Orchid Purple */
    --clr-secondary-glow: hsla(272, 95%, 58%, 0.12);
    
    --clr-accent-blue: hsl(210, 100%, 55%);   /* Sapphire Blue */
    --clr-accent-purple: hsl(255, 100%, 65%); /* Electric Violet */
    --clr-accent-pink: hsl(328, 95%, 58%);    /* Neon Fuchsia */
    --clr-accent-green: hsl(152, 90%, 48%);   /* Mint Green */
    
    --clr-text-main: hsl(220, 18%, 95%);
    --clr-text-muted: hsl(220, 12%, 70%);
    --clr-text-dim: hsl(220, 8%, 50%);
    
    --grad-primary: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    --grad-blue-purple: linear-gradient(135deg, hsl(205, 100%, 50%) 0%, hsl(272, 95%, 58%) 100%);
    --grad-purple-pink: linear-gradient(135deg, hsl(272, 95%, 58%) 0%, hsl(328, 95%, 58%) 100%);
    --grad-blue-green: linear-gradient(135deg, hsl(180, 100%, 48%) 0%, hsl(152, 90%, 48%) 100%);
    --grad-dark-overlay: linear-gradient(180deg, transparent 0%, rgba(11, 12, 16, 0.95) 100%);

    /* Typography */
    --ff-head: 'Outfit', sans-serif;
    --ff-body: 'Inter', sans-serif;
    
    /* Layout & Animation */
    --container-max-w: 1200px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.05);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: var(--ff-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: center;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.card-glass {
    background: var(--clr-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.card-glass:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Card Mouse Radial Glow Overlay */
.service-card::before, .portfolio-card::before, .why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(99, 102, 241, 0.1) 0%, transparent 80%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before, .portfolio-card:hover::before, .why-card:hover::before {
    opacity: 1;
}

/* Ensure card children stack above mouse glow overlay */
.service-card > *, .portfolio-card > *, .why-card > * {
    position: relative;
    z-index: 2;
}

/* Ensure internal visual shapes or icon wrappers align inside 3D preserve */
.service-icon-wrapper, .portfolio-visual-mock, .why-icon-box {
    transform: translateZ(30px);
}

/* Badges */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    font-family: var(--ff-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--clr-primary);
    background: var(--clr-primary-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

/* Headings */
.section-title {
    font-family: var(--ff-head);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.02rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-header {
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: var(--ff-head);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--clr-text-main);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

/* Scroll Progress Indicator Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-primary);
    z-index: 2000;
    transition: width 0.08s linear;
}

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(11, 12, 16, 0.85);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    transition: var(--transition-normal);
}

.site-header.scrolled .header-container {
    height: 48px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 32px;
    width: auto;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-text {
    font-family: var(--ff-head);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    gap: 16px;
}

.nav-link {
    font-size: 0.88rem;
    color: var(--clr-text-muted);
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-text-main);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    width: 24px;
    height: 16px;
    z-index: 1005;
}

.hamburger-line {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--clr-text-main);
    border-radius: var(--radius-full);
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

.line-1 { top: 0px; }
.line-2 { top: 7px; }
.line-3 { top: 14px; }

/* Typing Cursor animation */
.typing-cursor {
    color: var(--clr-primary);
    font-weight: 300;
    animation: blink 0.8s step-end infinite;
    margin-left: 4px;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 0 70px;
    display: flex;
    align-items: center;
    background-color: var(--clr-bg);
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    color: var(--clr-primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    font-family: var(--ff-head);
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--ff-head);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.hero-subtitle {
    font-size: 1.02rem;
    color: var(--clr-text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Tech Graphic / Visuals */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-sphere {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
}

.sphere-1 {
    width: 300px;
    height: 300px;
    background: var(--clr-primary);
    top: 10%;
    right: 10%;
}

.sphere-2 {
    width: 250px;
    height: 250px;
    background: var(--clr-secondary);
    bottom: 10%;
    left: 10%;
}

.tech-graphic {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.graphic-card {
    position: absolute;
    box-shadow: var(--shadow-lg);
}

.main-card {
    width: 360px;
    padding: 24px;
    left: 10%;
    top: 15%;
    font-family: monospace;
    font-size: 0.85rem;
    border-color: rgba(255, 255, 255, 0.08);
}

.graphic-header {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.graphic-body pre {
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.keyword { color: #f43f5e; }
.string { color: #10b981; }

.secondary-wrapper {
    position: absolute;
    right: 8%;
    top: 50%;
    z-index: 3;
}

.secondary-card {
    position: relative;
    width: 180px;
    padding: 16px;
    text-align: center;
    border-color: rgba(99, 102, 241, 0.2);
}

.tertiary-wrapper {
    position: absolute;
    left: 5%;
    bottom: 5%;
    animation: float 6s ease-in-out infinite alternate-reverse;
    z-index: 3;
}

.tertiary-card {
    position: relative;
    width: 180px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-color: rgba(168, 85, 247, 0.2);
}

.tech-card-icon {
    width: 32px;
    height: 32px;
    color: var(--clr-primary);
    margin-bottom: 10px;
}

.tertiary-card .tech-card-icon {
    color: var(--clr-secondary);
}

.loader-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 70%;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    animation: loading 2s infinite ease-in-out;
}

.tech-card-desc {
    font-size: 0.75rem;
    color: var(--clr-text-dim);
    margin-top: 4px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

@keyframes loading {
    0% { left: -70%; }
    100% { left: 100%; }
}

@keyframes mobile3DSway {
    0% {
        transform: perspective(1200px) rotateX(4deg) rotateY(-8deg) translateY(0);
    }
    50% {
        transform: perspective(1200px) rotateX(-4deg) rotateY(8deg) translateY(-10px);
    }
    100% {
        transform: perspective(1200px) rotateX(4deg) rotateY(-8deg) translateY(0);
    }
}

/* --- About Section --- */
.about-section {
    padding: 60px 0;
    background: var(--clr-bg-surface);
    position: relative;
}

.about-visual {
    position: relative;
}

.about-img-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.about-featured-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    object-fit: contain;
    background: radial-gradient(circle, rgba(31, 40, 51, 0.4) 0%, rgba(11, 12, 16, 0.9) 100%);
    border: 1px solid var(--clr-border);
    padding: 24px;
}

.image-overlay-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--clr-primary-glow) 0%, transparent 60%);
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.about-stats-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3;
}

.stat-badge {
    padding: 14px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-color: rgba(255, 255, 255, 0.08);
}

.stat-num {
    font-family: var(--ff-head);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--clr-text-main);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--clr-text-main);
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 500;
}

.section-subdesc {
    color: var(--clr-text-muted);
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature-item {
    display: flex;
    gap: 16px;
}

.about-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--clr-primary-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--clr-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.about-icon-box i {
    width: 22px;
    height: 22px;
}

.about-feature-item h5 {
    font-family: var(--ff-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-text-main);
    margin-bottom: 4px;
}

.about-feature-item p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

/* --- Services Section --- */
.services-section {
    padding: 60px 0;
    background: var(--clr-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.service-card {
    padding: 24px 20px;
    border-color: rgba(255, 255, 255, 0.05);
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--clr-primary);
    transition: var(--transition-normal);
}

.service-icon {
    width: 26px;
    height: 26px;
    transition: var(--transition-normal);
}

.service-card h3 {
    font-family: var(--ff-head);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

.service-card:hover .service-icon-wrapper {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
    transform: rotate(5deg);
}

/* --- Why Choose Us Section --- */
.why-choose-us-section {
    padding: 60px 0;
    background: var(--clr-bg-surface);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.why-card {
    padding: 20px;
    border-color: rgba(255, 255, 255, 0.04);
}

.why-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(168, 85, 247, 0.1);
    color: var(--clr-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-icon {
    width: 20px;
    height: 20px;
}

.why-card h4 {
    font-family: var(--ff-head);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.55;
}

/* --- Technologies Section --- */
.tech-section {
    padding: 60px 0;
    background: var(--clr-bg);
}

.tech-tabs-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.tech-tabs-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: rgba(11, 12, 16, 0.5);
    border: 1px solid var(--clr-border);
    padding: 6px;
    border-radius: var(--radius-sm);
    margin-bottom: 40px;
}

.tech-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    font-family: var(--ff-head);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-normal);
}

.tech-tab-btn:hover {
    color: var(--clr-text-main);
}

.tech-tab-btn.active {
    background: var(--grad-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.tech-tabs-content {
    min-height: 180px;
}

.tech-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

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

.tech-badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tech-badge-card {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ff-head);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.tech-badge-card:hover {
    background: var(--clr-bg-card);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.tech-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Portfolio Section --- */
.portfolio-section {
    padding: 60px 0;
    background: var(--clr-bg-surface);
}

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

.portfolio-card {
    border-color: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-visual-mock {
    height: 200px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f1015;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.08);
}

.project-overlay-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--grad-dark-overlay);
    bottom: 0;
    left: 0;
    z-index: 1;
}

.portfolio-mock-icon {
    width: 48px;
    height: 48px;
    color: #ffffff;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition-slow);
}

.gradient-blue-purple { background: var(--grad-blue-purple); }
.gradient-purple-pink { background: var(--grad-purple-pink); }
.gradient-blue-green { background: var(--grad-blue-green); }

.portfolio-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: rgba(11, 12, 16, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    z-index: 2;
}

.portfolio-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h3 {
    font-family: var(--ff-head);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}

.portfolio-card:hover .portfolio-mock-icon {
    transform: scale(1.15) rotate(5deg);
}

/* --- Contact Section --- */
.contact-section {
    padding: 60px 0;
    background: var(--clr-bg);
}

.contact-info-wrapper {
    padding-right: 24px;
}

.contact-details-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--clr-primary-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    width: 22px;
    height: 22px;
}

.detail-text h6 {
    font-family: var(--ff-head);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--clr-text-dim);
    margin-bottom: 4px;
}

.detail-text a, .detail-text span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-text-main);
}

.detail-text a:hover {
    color: var(--clr-primary);
}

.contact-form-wrapper {
    position: relative;
}

.contact-card {
    padding: 24px;
    border-color: rgba(255, 255, 255, 0.05);
}

.form-title {
    font-family: var(--ff-head);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--ff-head);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    margin-bottom: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--clr-text-dim);
    pointer-events: none;
}

.input-wrapper input, .form-group textarea {
    width: 100%;
    background: rgba(11, 12, 16, 0.4);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text-main);
    font-family: var(--ff-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    transition: var(--transition-normal);
}

.input-wrapper input {
    padding-left: 44px;
}

.form-group textarea {
    resize: none;
}

.input-wrapper input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background: rgba(11, 12, 16, 0.6);
    box-shadow: 0 0 12px var(--clr-primary-glow);
}

.form-group.error input, .form-group.error textarea {
    border-color: var(--clr-accent-pink);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.15);
}

.error-msg {
    font-size: 0.8rem;
    color: var(--clr-accent-pink);
    margin-top: 6px;
    display: none;
}

.form-group.error .error-msg {
    display: block;
}

/* --- Footer --- */
.site-footer {
    background: var(--clr-bg-surface);
    border-top: 1px solid var(--clr-border);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo-link {
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link i {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: #ffffff;
    background: var(--grad-primary);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.footer-links-column h4, .footer-newsletter h4 {
    font-family: var(--ff-head);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
}

.footer-links-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-column a {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.footer-links-column a:hover {
    color: var(--clr-primary);
    padding-left: 4px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    background: rgba(11, 12, 16, 0.4);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text-main);
    padding: 12px 50px 12px 16px;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--clr-primary);
}

.newsletter-form button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 38px;
    background: var(--grad-primary);
    border: none;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.newsletter-form button i {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--clr-border);
    font-size: 0.85rem;
    color: var(--clr-text-dim);
}

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

.footer-bottom-links a:hover {
    color: var(--clr-text-muted);
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    bottom: -100px;
    right: 30px;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2000;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.toast-notification.show {
    transform: translateY(-130px);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 28px;
    height: 28px;
    color: var(--clr-accent-green);
}

.toast-content h6 {
    font-family: var(--ff-head);
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.toast-content p {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--clr-text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--clr-text-main);
}

/* --- Reveal Scroll Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle, .section-desc, .section-subdesc {
        font-size: 0.98rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: auto;
        min-height: 240px;
        margin-top: 24px;
    }
    
    .tech-graphic {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        height: auto;
        width: 100%;
        transform-style: preserve-3d;
        animation: mobile3DSway 7s ease-in-out infinite;
    }
    
    .main-card {
        position: relative;
        width: 95%;
        max-width: 340px;
        left: auto;
        top: auto;
        margin: 0 auto;
        box-shadow: var(--shadow-md);
        padding: 20px;
        transform: perspective(1000px) translateZ(15px);
        transform-style: preserve-3d;
    }
    
    .secondary-wrapper, .tertiary-wrapper {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        margin: 0 auto;
        animation: none;
        display: flex;
        justify-content: center;
        width: 100%;
        transform-style: preserve-3d;
    }
    
    .secondary-card {
        width: 95%;
        max-width: 340px;
        box-shadow: var(--shadow-md);
        transform: perspective(1000px) translateZ(30px);
        transform-style: preserve-3d;
    }

    .tertiary-card {
        width: 95%;
        max-width: 340px;
        box-shadow: var(--shadow-md);
        transform: perspective(1000px) translateZ(45px);
        transform-style: preserve-3d;
    }
    
    .menu-toggle {
        display: block;
    }

    /* Morphing Hamburger lines to X on open */
    .menu-toggle.open .line-1 {
        top: 7px;
        transform: rotate(135deg);
    }
    
    .menu-toggle.open .line-2 {
        opacity: 0;
        left: -20px;
    }
    
    .menu-toggle.open .line-3 {
        top: 7px;
        transform: rotate(-135deg);
    }

    .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--clr-border);
        flex-direction: column;
        padding: 40px 24px;
        gap: 28px;
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }
    
    .site-header.scrolled .nav-menu {
        top: 48px;
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .nav-cta-wrapper {
        width: 100%;
        max-width: 260px;
        display: flex;
        justify-content: center;
    }
    
    .nav-cta-wrapper .btn {
        width: 100%;
    }

    .about-stats-overlay {
        right: 12px;
        bottom: 12px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-subtitle, .section-desc, .section-subdesc {
        font-size: 0.92rem;
    }
    
    .main-card, .secondary-card, .tertiary-card {
        max-width: 310px;
    }
    .main-card {
        padding: 16px;
        font-size: 0.8rem;
    }
}

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

    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .main-card, .secondary-card, .tertiary-card {
        max-width: 285px;
    }
    .main-card {
        padding: 12px;
        font-size: 0.72rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .stat-badge {
        padding: 8px 16px;
    }
    
    .stat-num {
        font-size: 1.35rem;
    }
    
    .stat-lbl {
        font-size: 0.65rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
