/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Brand Color Variables (Inspired by the Puzzle Logo) --- */
:root {
    --bg-dark: #14161b;
    --bg-card: rgba(30, 34, 41, 0.7);
    --bg-card-hover: rgba(40, 45, 54, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-muted: #9ba3b2;
    --text-dim: #606775;
    
    /* Logo Palette */
    --logo-orange: #f39200;
    --logo-green: #8cc63f;
    --logo-magenta: #ec008c;
    --logo-teal: #00a896;
    --logo-gray: #2d3035;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(243, 146, 0, 0.2);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--logo-gray);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--logo-orange);
}

/* --- Layout Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* --- Background Grid Pattern --- */
.bg-grid-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(243, 146, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 0, 140, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 168, 150, 0.02) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    opacity: 0.9;
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(20, 22, 27, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--logo-orange), var(--logo-magenta));
    transition: var(--transition-fast);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-nav-socials {
    display: none;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    transition: var(--transition-fast);
}

.social-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-icon-btn.fb:hover svg {
    fill: #1877f2;
}

.social-icon-btn.ig:hover svg {
    fill: #e1306c;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    margin: 6px 0;
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(243, 146, 0, 0.08);
    border: 1px solid rgba(243, 146, 0, 0.2);
    color: var(--logo-orange);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--logo-orange);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--logo-orange) 0%, var(--logo-magenta) 50%, var(--logo-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--logo-orange) 0%, #ff6b00 100%);
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 146, 0, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Interactive Floating Hero Elements */
.hero-visual {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-display-card {
    position: relative;
    width: 320px;
    height: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.logo-display-card img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 8px;
    opacity: 0.6;
    filter: blur(1px);
    z-index: 2;
    transition: var(--transition-normal);
}

.shape-1 {
    width: 60px;
    height: 60px;
    background-color: var(--logo-green);
    top: 10%;
    left: 10%;
    animation: float-shape 8s ease-in-out infinite alternate;
}

.shape-2 {
    width: 90px;
    height: 120px;
    background-color: var(--logo-magenta);
    top: 50%;
    right: -5%;
    animation: float-shape 11s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    width: 50px;
    height: 70px;
    background-color: var(--logo-teal);
    bottom: 5%;
    left: 20%;
    animation: float-shape 9s ease-in-out infinite alternate;
}

.shape-4 {
    width: 120px;
    height: 120px;
    border: 4px solid var(--logo-orange);
    top: -5%;
    right: 15%;
    opacity: 0.2;
    animation: rotate-shape 20s linear infinite;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    color: var(--logo-orange);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title span {
    background: linear-gradient(90deg, var(--text-white), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient, var(--logo-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--icon-color, var(--logo-orange));
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--icon-color, var(--logo-orange));
    color: var(--bg-dark);
    transform: scale(1.1);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    min-height: 58px;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
}

.service-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 24px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--icon-color, var(--logo-orange));
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.service-card:hover .service-link svg {
    transform: translateX(4px);
}

/* Individual card accent variations */
.card-orange {
    --accent-gradient: linear-gradient(90deg, var(--logo-orange), #ff7300);
    --icon-color: var(--logo-orange);
}
.card-green {
    --accent-gradient: linear-gradient(90deg, var(--logo-green), #7fbd30);
    --icon-color: var(--logo-green);
}
.card-magenta {
    --accent-gradient: linear-gradient(90deg, var(--logo-magenta), #d8007e);
    --icon-color: var(--logo-magenta);
}
.card-teal {
    --accent-gradient: linear-gradient(90deg, var(--logo-teal), #009383);
    --icon-color: var(--logo-teal);
}

/* --- Interactive Puzzle Section --- */
#interactive-puzzle {
    background: rgba(20, 22, 27, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.puzzle-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.puzzle-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.puzzle-board {
    width: 320px;
    height: 320px;
    background: var(--logo-gray);
    border: 6px solid var(--logo-gray);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.puzzle-tile {
    background-color: var(--bg-dark);
    border-radius: 4px;
    cursor: pointer;
    background-image: url('logo.jpg');
    background-size: 300% 300%; /* Using 300% for full responsiveness at any screen size */
    transition: border-color var(--transition-fast), transform 0.1s ease;
    user-select: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.puzzle-tile:hover:not(.empty) {
    filter: brightness(1.1);
    transform: scale(0.98);
}

.puzzle-tile.empty {
    background: transparent !important;
    box-shadow: none;
    cursor: default;
}

.puzzle-controls {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

.puzzle-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.puzzle-btn-shuffle {
    background-color: var(--logo-orange);
    color: var(--text-white);
}

.puzzle-btn-shuffle:hover {
    background-color: #d68000;
}

.puzzle-btn-solve {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.puzzle-btn-solve:hover {
    background-color: rgba(255,255,255,0.1);
}

.puzzle-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 22, 27, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    z-index: 10;
}

.puzzle-success-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.puzzle-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--logo-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 2rem;
    animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.puzzle-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--logo-green);
}

.puzzle-success-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Puzzle Info Text */
.puzzle-info {
    max-width: 500px;
}

.puzzle-features-list {
    list-style: none;
    margin-top: 30px;
}

.puzzle-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-muted);
}

.puzzle-features-list li svg {
    width: 20px;
    height: 20px;
    color: var(--logo-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- About Section --- */
/* --- About Section Asymmetric Collage Layout --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content {
    text-align: left;
}

.about-content .section-title {
    margin-bottom: 24px;
    font-size: 2.8rem;
    line-height: 1.2;
}

.about-narrative {
    border-left: 3px solid var(--logo-orange);
    padding-left: 24px;
    margin-bottom: 32px;
}

.about-text-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 16px;
    line-height: 1.6;
}

.about-text-body {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.about-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Collage styling */
.about-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.about-collage {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 400px;
}

.collage-main-frame {
    position: absolute;
    top: 50px;
    left: 40px;
    width: calc(100% - 80px);
    height: calc(100% - 100px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 2;
}

.collage-main-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(20, 22, 27, 0.8) 100%);
    z-index: 3;
}

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

.collage-main-frame:hover .about-img {
    transform: scale(1.05);
}

/* Floating Card Base Styles */
.floating-stat-card {
    position: absolute;
    background: rgba(30, 34, 41, 0.7);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 4;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-card-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 20px;
    filter: blur(15px);
    opacity: 0.15;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.floating-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.floating-stat-card:hover .stat-card-glow {
    opacity: 0.3;
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.stat-card-content.experience-style {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.stat-card-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-white), #ffae19);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-card-content.experience-style .stat-card-num {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--logo-orange), var(--logo-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}

.stat-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-content.experience-style .stat-card-label {
    color: var(--text-white);
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Card positions on collage */
.card-top-right {
    top: 10px;
    right: 10px;
    width: 170px;
}

.card-bottom-left {
    bottom: 10px;
    left: 10px;
    width: 190px;
}

.card-center-left {
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 160px;
}

.card-center-left:hover {
    transform: translateY(-55%) scale(1.02);
}

/* --- Portfolio Section --- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--logo-orange);
    color: var(--text-white);
    border-color: var(--logo-orange);
    box-shadow: 0 4px 12px rgba(243, 146, 0, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.portfolio-img-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--logo-gray);
}

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

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

/* Interactive abstract CSS pattern for work mockups instead of placeholders */
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.portfolio-placeholder-pattern {
    position: absolute;
    width: 150%;
    height: 150%;
    opacity: 0.15;
    background-size: 40px 40px;
    transform: rotate(-15deg);
}

.pat-1 {
    background-image: radial-gradient(var(--logo-orange) 20%, transparent 20%);
}
.pat-2 {
    background-image: linear-gradient(45deg, var(--logo-magenta) 25%, transparent 25%);
}
.pat-3 {
    background-image: repeating-linear-gradient(0deg, var(--logo-teal), var(--logo-teal) 4px, transparent 4px, transparent 20px);
}
.pat-4 {
    background-image: radial-gradient(circle, var(--logo-green) 10%, transparent 40%);
}

.portfolio-placeholder-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color);
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-placeholder-logo {
    transform: scale(1.1) rotate(5deg);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 22, 27, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--logo-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transform: scale(0.8);
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-btn {
    transform: scale(1);
}

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

.portfolio-cat {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-white);
}

.portfolio-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Testimonials Section --- */
.testimonials-slider {
    margin-top: 40px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimonial-card {
    min-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.testimonial-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.quote-icon {
    font-size: 4rem;
    line-height: 1;
    color: rgba(243, 146, 0, 0.15);
    font-family: 'Outfit', sans-serif;
    position: absolute;
    top: 20px;
    left: 40px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-white);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--logo-orange);
    margin-bottom: 4px;
}

.client-company {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    background: var(--logo-orange);
    width: 24px;
    border-radius: 5px;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition-normal);
}

.contact-info-card:hover {
    border-color: rgba(243, 146, 0, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(243, 146, 0, 0.08);
    border: 1px solid rgba(243, 146, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-orange);
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-white);
}

.contact-info-content p, .contact-info-content a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-info-content a:hover {
    color: var(--logo-orange);
}

.social-connect {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.social-connect h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.social-connect-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Contact Form styling */
.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.form-group {
    position: relative;
    margin-bottom: 32px;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--text-dim);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

/* Floating label effect */
.form-input:focus, .form-input:not(:placeholder-shown) {
    outline: none;
    border-bottom-color: var(--logo-orange);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -12px;
    font-size: 0.8rem;
    color: var(--logo-orange);
    font-weight: 600;
}

textarea.form-input {
    min-height: 120px;
    resize: none;
}

.form-status {
    font-size: 0.9rem;
    margin-top: -16px;
    margin-bottom: 24px;
    min-height: 20px;
    transition: var(--transition-fast);
}

.form-status.success {
    color: var(--logo-green);
}

.form-status.error {
    color: var(--logo-magenta);
}

/* --- Footer --- */
footer {
    background: #0d0f13;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

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

.footer-nav {
    display: flex;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-nav-link {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-nav-link:hover {
    color: var(--logo-orange);
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--logo-orange);
    color: var(--text-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #ff6b00;
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(243, 146, 0, 0.4);
}

/* --- Keyframe Animations --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes float-shape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, 30px) rotate(10deg); }
}

@keyframes rotate-shape {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scale-up {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Scroll Animation classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-wrapper {
        gap: 40px;
    }
    .about-wrapper, .contact-wrapper, .puzzle-layout {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        margin: 0 auto 32px auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-visual {
        height: 380px;
    }
    
    .logo-display-card {
        width: 280px;
        height: 280px;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-visual {
        order: 2;
    }

    .about-collage {
        height: 360px;
        width: 100%;
        max-width: 400px;
    }

    .collage-main-frame {
        top: 40px;
        left: 30px;
        width: calc(100% - 60px);
        height: calc(100% - 80px);
    }
    
    .card-center-left {
        left: -10px;
    }
    
    .about-narrative {
        padding-left: 16px;
    }
    
    .puzzle-layout {
        grid-template-columns: 1fr;
    }
    
    .puzzle-info {
        text-align: center;
        order: 2;
    }
    
    .puzzle-features-list {
        display: inline-block;
        text-align: left;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        order: 2;
    }
    
    /* Navigation burger menu */
    .mobile-nav-toggle {
        display: block;
        z-index: 1100;
    }
    
    .mobile-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #101217;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--border-color);
        z-index: 1050;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-actions .social-icon-btn {
        display: none; /* Hide social icons in header on mobile, but keep burger menu visible */
    }
    
    .mobile-nav-socials {
        display: flex;
        gap: 16px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-text-sub {
        display: none;
    }
    
    .puzzle-board {
        width: 280px;
        height: 280px;
    }

    /* Collage Mobile scaling */
    .about-collage {
        height: 300px;
        max-width: 320px;
    }
    
    .collage-main-frame {
        top: 30px;
        left: 20px;
        width: calc(100% - 40px);
        height: calc(100% - 60px);
        border-radius: 16px;
    }
    
    .floating-stat-card {
        padding: 10px 14px;
        border-radius: 12px;
    }
    
    .stat-card-num {
        font-size: 1.3rem;
    }
    
    .stat-card-content.experience-style .stat-card-num {
        font-size: 1.7rem;
    }
    
    .stat-card-label {
        font-size: 0.7rem;
    }
    
    .card-top-right {
        width: 125px;
        top: 5px;
        right: -5px;
    }
    
    .card-bottom-left {
        width: 145px;
        bottom: 5px;
        left: -5px;
    }
    
    .card-center-left {
        width: 115px;
        left: -20px;
    }
}
