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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-card: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 150%;
    background: radial-gradient(ellipse at center,
        rgba(116, 192, 252, 0.12) 0%,
        rgba(52, 152, 219, 0.08) 30%,
        transparent 70%);
    filter: blur(50px);
    animation: auraGlow 6s ease-in-out infinite;
    z-index: -1;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 7rem;
    font-weight: 950;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.12em;
    text-align: center;
    position: relative;
    margin: 0;
    line-height: 1;
}

.logo-line {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-line.main-brand {
    filter: drop-shadow(0 2px 5px rgba(116, 192, 252, 0.1));
}

.logo span {
    display: inline-block;
    background:
        linear-gradient(45deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 60%,
            transparent 100%),
        linear-gradient(135deg,
            #74c0fc 0%,
            #4dabf7 20%,
            #339af0 40%,
            #1c7ed6 60%,
            #1864ab 80%,
            #0c2b4e 100%);
    background-size: 200% 200%, 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-weight: 950;
    text-shadow: 0 0 5px rgba(116, 192, 252, 0.15);
}

.logo span::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg,
        #74c0fc 0%,
        #4dabf7 20%,
        #339af0 40%,
        #1c7ed6 60%,
        #1864ab 80%,
        #0c2b4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(3px);
    opacity: 0.15;
}

.logo span:nth-child(1) { animation-delay: 0s; }
.logo span:nth-child(2) { animation-delay: 0.1s; }
.logo span:nth-child(3) { animation-delay: 0.2s; }
.logo span:nth-child(4) { animation-delay: 0.3s; }
.logo span:nth-child(5) { animation-delay: 0.4s; }
.logo span:nth-child(6) { animation-delay: 0.5s; }
.logo span:nth-child(8) { animation-delay: 0.7s; }
.logo span:nth-child(9) { animation-delay: 0.8s; }
.logo span:nth-child(10) { animation-delay: 0.9s; }
.logo span:nth-child(11) { animation-delay: 1s; }
.logo span:nth-child(12) { animation-delay: 1.1s; }
.logo span:nth-child(13) { animation-delay: 1.2s; }

.logo .space {
    width: 0.4em;
}

/* Studio text - bold and strong like main logo */
.studio-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: rgba(160, 210, 250, 0.8);
    padding-left: 0.6em;
    margin-top: 0.25rem;
    position: relative;
}

@keyframes innerShine {
    0% {
        background-position: -200% 0%, 0% 0%;
    }
    100% {
        background-position: 200% 0%, 0% 0%;
    }
}

@keyframes auraGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Ice Particles */
.ice-particles {
    display: none;
}

/* Tagline */
.tagline {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(96, 165, 250, 0.75);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    opacity: 0.85;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

/* Code Animation Background */
.code-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(29, 84, 108, 0.15) 0%, rgba(26, 61, 100, 0.1) 50%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1d546c 0%, #0c2b4e 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(29, 84, 108, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 84, 108, 0.4);
    background: linear-gradient(135deg, #1a3d64 0%, #0c2b4e 100%);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 2s ease-in;
    transition: opacity 0.3s ease;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    font-weight: 600;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--accent-1);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
}

/* Services Section */
.services {
    background-color: var(--bg-secondary);
}

.services-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(29, 84, 108, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 12px 40px rgba(29, 84, 108, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: #60a5fa;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: #93c5fd;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-weight: bold;
}

/* Projects Section */
.projects {
    background-color: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(29, 84, 108, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 12px 40px rgba(29, 84, 108, 0.3);
}

/* Browser Preview Mockup */
.project-preview {
    position: relative;
    background: linear-gradient(135deg, rgba(29, 84, 108, 0.1) 0%, rgba(12, 43, 78, 0.1) 100%);
    padding: 1.5rem;
}

.preview-browser {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.browser-bar {
    background: linear-gradient(180deg, #1a1a24 0%, #13131a 100%);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

.browser-dots {
    display: flex;
    gap: 0.4rem;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(96, 165, 250, 0.3);
}

.browser-dots span:nth-child(1) {
    background-color: rgba(239, 68, 68, 0.5);
}

.browser-dots span:nth-child(2) {
    background-color: rgba(251, 191, 36, 0.5);
}

.browser-dots span:nth-child(3) {
    background-color: rgba(34, 197, 94, 0.5);
}

.preview-screen {
    background-color: rgba(10, 10, 15, 0.5);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder svg {
    width: 100%;
    height: 100%;
}

/* Project Info */
.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(29, 84, 108, 0.2);
    color: #60a5fa;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.2s ease;
}

.project-card:hover .tag {
    background-color: rgba(29, 84, 108, 0.3);
    border-color: rgba(96, 165, 250, 0.4);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    background: linear-gradient(135deg, #1d546c 0%, #0c2b4e 100%);
    color: #fff;
    border: 2px solid #60a5fa;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.project-card:hover .view-project-btn {
    transform: translateY(0);
}

.view-project-btn:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #1d546c 100%);
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.4);
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background-color: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-1);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
}

.form-group textarea {
    resize: vertical;
}

/* Project Detail Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #0a0e1a 0%, #12182b 100%);
    border-radius: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(116, 192, 252, 0.1);
    animation: modalSlideIn 0.4s ease-out;
    z-index: 10000;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding: 4rem;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
    align-items: center;
}

.modal-preview {
    position: relative;
}

.modal-preview .preview-browser {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-preview .browser-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-preview .browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.modal-preview .browser-dots span:nth-child(1) {
    background: #ff5f57;
}

.modal-preview .browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.modal-preview .browser-dots span:nth-child(3) {
    background: #28ca42;
}

.modal-preview .preview-screen {
    background: var(--bg-secondary);
    min-height: 500px;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

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

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #74c0fc 0%, #4dabf7 50%, #339af0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.modal-tags .tag {
    background: rgba(116, 192, 252, 0.1);
    border: 1px solid rgba(116, 192, 252, 0.3);
    color: #74c0fc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-note {
    background: rgba(116, 192, 252, 0.05);
    border: 1px solid rgba(116, 192, 252, 0.2);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-note svg {
    flex-shrink: 0;
    color: #74c0fc;
    margin-top: 2px;
}

.modal-note p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.modal-cta {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    margin-top: auto;
}

/* Modal Responsive */
@media (max-width: 1024px) {
    .modal-body {
        padding: 3rem;
        gap: 2.5rem;
    }

    .modal-preview .preview-screen {
        height: 50vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        border-radius: 0;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
        min-height: 100vh;
        padding-bottom: 3rem;
    }

    .modal-preview {
        order: 1;
    }

    .modal-info {
        order: 2;
    }

    .modal-preview .preview-screen {
        min-height: 300px;
        height: 40vh;
        padding: 2rem;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-description {
        font-size: 1rem;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .modal-info {
        gap: 1rem;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-nav .domain-link {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
    padding-left: 1.5rem;
}

.footer-nav .domain-link::before {
    content: '|';
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.3;
}

.footer-nav .domain-link:hover {
    color: var(--accent-light);
}

.footer p {
    color: var(--text-secondary);
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Design */
/* Medium devices (tablets, 992px and down) */
@media (max-width: 992px) {
    .logo {
        font-size: 5.5rem;
    }

    .studio-text {
        font-size: 1.3rem;
        letter-spacing: 0.5em;
    }

    .hero-description {
        font-size: 1.15rem;
    }
}

/* Small devices (landscape phones, 768px and down) */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .logo {
        font-size: 4rem;
        letter-spacing: 0.1em;
    }

    .studio-text {
        font-size: 1.1rem;
        letter-spacing: 0.5em;
    }

    .logo span {
        filter: drop-shadow(0 1px 3px rgba(116, 192, 252, 0.1));
    }

    .logo-wrapper {
        margin-bottom: 2rem;
    }

    .logo-wrapper::before {
        filter: blur(35px);
        opacity: 0.6;
    }

    .ice-particles .particle {
        width: 6px;
        height: 6px;
    }

    .tagline {
        font-size: 0.85rem;
        letter-spacing: 0.12em;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .btn-primary {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .logo {
        font-size: 2.8rem;
        letter-spacing: 0.08em;
    }

    .logo .space {
        width: 0.3em;
    }

    .studio-text {
        font-size: 0.9rem;
        letter-spacing: 0.5em;
        margin-top: 0.5rem;
    }

    .logo span {
        filter: drop-shadow(0 1px 2px rgba(116, 192, 252, 0.08));
    }

    .logo-line.main-brand {
        filter: drop-shadow(0 1px 3px rgba(116, 192, 252, 0.08));
    }

    .ice-particles .particle {
        width: 5px;
        height: 5px;
    }

    .logo-wrapper {
        margin-bottom: 2rem;
    }

    .logo-wrapper::before {
        filter: blur(30px);
        opacity: 0.5;
    }

    .brand-container {
        gap: 0.75rem;
    }

    .tagline {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.75rem;
        padding: 0 0.5rem;
        line-height: 1.6;
    }

    .btn-primary {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        max-width: 100%;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .services-intro {
        font-size: 1.05rem;
        padding: 0 0.5rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Modal adjustments for small screens */
    .modal-body {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-description {
        font-size: 0.95rem;
    }

    .modal-preview .preview-screen {
        min-height: 250px;
        height: 35vh;
        padding: 1.5rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .modal-cta {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}
