/* Root Theme */
:root {
    --bg-dark: #0a0d14;
    --accent-blue: #4da3ff;
    --accent-silver: #dfe6f1;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #f8fafc;
    --text-muted: #9aa4b2;
}

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

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #0a0d14, #0f121b);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

/* Branding */
.brand-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-badge {
    padding: 0.35rem 0.8rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-silver));
    color: #000;
    font-weight: 900;
}

.brand-title {
    font-size: 1rem;
    font-weight: 800;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--accent-blue);
    text-transform: uppercase;
}

/* Phone Button */
.header-phone {
    padding: 0.45rem 1rem;
    border-radius: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Hero */
.hero-lead {
    text-align: center;
    margin: 2.5rem 0;
}

.hero-lead h1 {
    font-size: 2.4rem;
    background: linear-gradient(135deg, #ffffff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Promo Box */
.promo-preview-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.promo-tag {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-silver));
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 800;
    color: #000;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #2f7fe8);
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    color: #000;
    font-weight: 800;
    text-decoration: none;
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
}

/* Domain Checker */
.domain-checker-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

/* Inputs */
.domain-input {
    flex: 1;
    padding: 0.85rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
}

/* Gallery Header */
.section-header {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Masonry Grid */
.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

@media(max-width: 900px) {
    .gallery-grid { column-count: 2; }
}

@media(max-width: 600px) {
    .gallery-grid { column-count: 1; }
}

.gallery-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.gallery-card img {
    width: 100%;
    display: block;
}

/* Contact */
.contact-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), #2f7fe8);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 800;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
}
/* IONOS Pricing Box */
.ionos-info-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.ionos-text {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ionos-btn {
    display: inline-block;
    margin-top: 0.5rem;
}

/* Free Preview Box */
.preview-info-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.preview-text {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.preview-btn {
    display: inline-block;
    margin-top: 0.5rem;
}
/* IONOS Pricing Box */
.ionos-info-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.ionos-text {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ionos-btn {
    display: inline-block;
    margin-top: 0.5rem;
}
/* Fix button overlap and mobile stacking */
.btn-primary,
.btn-secondary,
.ionos-btn,
.preview-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

/* Ensure boxes have spacing so text never touches buttons */
.ionos-info-box,
.preview-info-box {
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Fix text spacing inside boxes */
.ionos-text,
.preview-text {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* Header Phone Container Animation */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    animation: phonePulse 2s infinite ease-in-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.header-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.7);
}

/* Phone Icon Ringing Animation */
.phone-icon {
    display: inline-block;
    animation: phoneShake 1.5s infinite ease-in-out;
}

/* Keyframes for the Pulse/Glow */
@keyframes phonePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 210, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
    }
}

/* Keyframes for the Icon Shake */
@keyframes phoneShake {
    0%, 100% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(-12deg); }
    40%, 80% { transform: rotate(12deg); }
}

/* Core Styling & Modern Typography */
:root {
    --bg-dark: #0a0f1d;
    --card-bg: rgba(17, 24, 39, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #007bff;
    --primary-glow: #00d2ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 3D Interactive Background Canvas Styling */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Main Wrapper Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px 20px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Header Phone Animation */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    animation: phonePulse 2s infinite ease-in-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.7);
}

.phone-icon {
    display: inline-block;
    animation: phoneShake 1.5s infinite ease-in-out;
}

/* Hero Section Typography Upgrade */
.hero-lead {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.hero-lead h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.hero-lead strong {
    color: var(--primary-glow);
}

/* Cards & Content Boxes (Glassmorphic Redesign) */
.promo-preview-box, .domain-checker-box, .preview-info-box, .contact-box {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.promo-preview-box:hover, .domain-checker-box:hover, .contact-box:hover {
    border-color: rgba(0, 210, 255, 0.3);
}

.promo-tag {
    display: inline-block;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary-glow);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.promo-preview-box h2, .domain-checker-box h3, .contact-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.promo-preview-box p, .domain-checker-box p, .preview-text, .contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Domain Input Group */
.domain-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.domain-input {
    flex: 1;
    min-width: 250px;
    background: rgba(10, 15, 29, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 18px;
    color: #fff;
    font-size: 1rem;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s;
}

.domain-input:focus {
    border-color: var(--primary-glow);
}

/* Modern Action Buttons */
.btn-primary, .btn-secondary, button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #fff;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover, button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

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

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

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(10, 15, 29, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 18px;
    color: #fff;
    font-size: 1rem;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-glow);
}

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

/* Dividers & Headers */
.section-divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

.section-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes phonePulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

@keyframes phoneShake {
    0%, 100% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(-12deg); }
    40%, 80% { transform: rotate(12deg); }
}

/* --- Modern Masonry Gallery Styles --- */

.project-masonry-grid {
    /* This creates the masonry effect automatically */
    columns: 2 300px; /* Minimum 2 columns, each at least 300px wide */
    gap: 25px; /* Space between images */
    margin-bottom: 50px;
    /* Ensure gallery sits nicely on the background */
    position: relative;
    z-index: 0;
}

.masonry-item {
    break-inside: avoid; /* Prevents an image from splitting across columns */
    margin-bottom: 25px; /* Space below items */
    
    /* Glassmorphism Card Style */
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px; /* Padding around the image inside the card */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    
    /* Interaction setup */
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.2); /* Subtle cyan glow on hover */
    border-color: rgba(0, 210, 255, 0.3);
}

.project-img-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.masonry-item img {
    width: 100%;
    display: block; /* Removes bottom whitespace */
    border-radius: 10px;
    transition: transform 0.5s ease; /* Slow zoom effect */
}

/* --- Hover Overlay Effect --- */
.img-overlay {
    position: absolute;
    top: 8px; /* Matches padding */
    left: 8px; /* Matches padding */
    right: 8px; /* Matches padding */
    bottom: 8px; /* Matches padding */
    border-radius: 10px;
    
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(0, 210, 255, 0.8));
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
}

.img-overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.masonry-item:hover img {
    transform: scale(1.08); /* Image zooms in slightly */
}

.masonry-item:hover .img-overlay {
    opacity: 1; /* Overlay appears */
}

.masonry-item:hover .img-overlay span {
    transform: translateY(0); /* Text slides up */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
    .project-masonry-grid {
        columns: 1; /* Switch to single column on small screens */
    }
}

/* Standardize your buttons and containers across all pages */
.btn-primary {
    background: #00d2ff;
    color: #000;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #00a0c2;
}

.btn-secondary {
    border: 1px solid #00d2ff;
    color: #00d2ff;
    padding: 8px 16px;
    border-radius: 6px;
}

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