/*
Theme Name: Gubansk Portfolio
Theme URI: https://gubansk.com/
Author: Antigravity
Description: Modern, animated one-page portfolio for Web Developer & Marketing Specialist.
Version: 1.0.0
Text Domain: gubansk-portfolio
*/

:root {
    --bg-color: #0c0c0c;
    --text-color: #ffffff;
    --accent-primary: #00ff88;
    --accent-secondary: #00bd68;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
    /* Smooth fallback */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

section {
    padding: 80px 5%;
    min-height: 60vh;
    /* Reduced from 100vh to avoid large gaps */
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 80px;
    /* Offset for the sticky header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 25px;
    /* Added padding to prevent edge-touching on mobile */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

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

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

.logo-img {
    height: 35px;
    /* Adjust based on the actual SVG's aspect ratio */
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Slight opacity so it blends with background */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.75);
    /* Dark overlay to keep text readable */
    z-index: 0;
}

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

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

.code-snippet {
    position: absolute;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    opacity: 0.15;
    white-space: nowrap;
    user-select: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
    bottom: -300px;
    left: -200px;
    z-index: 0;
    animation: pulse-bg 15s infinite alternate;
}

@keyframes pulse-bg {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

.hero-title {
    font-size: clamp(3rem, 12vw, 6rem);
    line-height: 1;
    margin-bottom: 25px;
    z-index: 1;
    font-weight: 700;
}

.hero-title span {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.8;
    min-height: 1.6em;
    /* Prevent layout jump */
}

.cursor {
    color: var(--accent-primary);
    font-weight: bold;
    margin-left: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    margin-left: 20px;
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

.section-badge {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Services Nimo Style */
.services-list {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    padding: 60px 0;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    align-items: center;
    gap: 40px;
    will-change: transform, opacity;
}

.service-item:first-child {
    border-top: 1px solid var(--glass-border);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.3;
}

.service-main h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-main p {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 400px;
}

.service-details ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-details li {
    font-size: 0.95rem;
    opacity: 0.8;
    position: relative;
    padding-left: 20px;
}

.service-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.service-item:hover {
    padding-left: 30px;
    background: rgba(255, 255, 255, 0.02);
}

.service-item:hover .service-main h3 {
    color: var(--accent-primary);
}

.service-item:hover .service-number {
    opacity: 1;
    color: var(--accent-primary);
}

@media (max-width: 992px) {
    .service-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }

    .service-number {
        display: none;
    }

    .service-details ul {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.section-title.left {
    text-align: left;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    margin-top: 50px;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(40%);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
    transition: 0.6s;
}

.image-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.image-wrapper:hover .image-glow {
    opacity: 0.2;
}

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

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.8;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.centered-stack {
    justify-content: center;
    margin-top: 60px;
    width: 100%;
}

.tech-tag {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.portrait-wrapper {
    aspect-ratio: 3 / 4;
    max-width: 400px;
    /* Slightly narrower to emphasize height */
    margin: 0 auto;
}

.portrait-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-text-content {
        align-items: center;
    }

    .about-text-content h2 {
        text-align: center !important;
    }

    .tech-stack {
        justify-content: center !important;
    }
}

.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 60px;
}

.tech-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Contact Section Enhancement */
.contact-marketing {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
    color: var(--text-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 255, 136, 0.3);
}

.info-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    font-weight: 600;
}

.info-value {
    font-size: 1.4rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

a.info-value:hover {
    color: var(--accent-primary);
}

.info-availability {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 2px;
}

.contact-form-wrapper {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.wpforms-container {
    margin: 0 !important;
}

div.wpforms-container-full .wpforms-field-label,
.wp-core-ui div.wpforms-container-full .wpforms-field-label {
    color: rgb(255 255 255) !important;
}

.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
    color: #fff !important;
    opacity: 0.3 !important;
}



.wpforms-form .wpforms-field-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpforms-form .wpforms-field {
    padding: 0 !important;
    clear: both !important;
}

.wpforms-form .wpforms-field-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
    font-weight: normal;
}

.wpforms-form input[type=text],
.wpforms-form input[type=email],
.wpforms-form textarea {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--glass-border) !important;
    padding: 12px 15px !important;
    border-radius: 10px !important;
    color: white !important;
    font-family: var(--font-body) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.wpforms-form input[type=text]:focus,
.wpforms-form input[type=email]:focus,
.wpforms-form textarea:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
}

.wpforms-form .wpforms-submit-container {
    margin-top: 20px;
}

/* Base button styling mapped to wpforms submit */
.wpforms-form button[type=submit] {
    display: inline-block;
    margin-top: 20px !important;
    padding: 15px 35px !important;
    border-radius: 30px !important;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    color: #000 !important;
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
    width: auto;
    height: auto !important;
}

.wpforms-form button[type=submit]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 255, 136, 0.3);
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary)) !important;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Footer Ticker */
.footer-ticker-wrapper {
    width: 100%;
    background: var(--accent-primary);
    overflow: hidden;
    padding: 10px 0;
    margin-top: 0px;
    transform: rotate(-1.5deg) scale(1.05);
    /* Tilted effect */
    transform-origin: center;
    position: relative;
    z-index: 10;
}

.footer-ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    width: fit-content;
}

.ticker-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-content span {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bg-color);
    padding: 0 20px;
    display: inline-block;
}

.ticker-content .sep {
    font-weight: 400;
    opacity: 0.4;
    padding: 0 10px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.site-footer {
    padding: 40px 0;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive / Mobile Navigation */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

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

.burger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        /* Solid dark background */
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: right 0.4s ease;
        justify-content: center;
        z-index: 999;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .mobile-nav-contact {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid var(--glass-border);
    }

    .mobile-nav-contact .contact-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 1.1rem;
        color: var(--text-color);
        opacity: 0.8;
    }

    .mobile-nav-contact .contact-link:hover {
        color: var(--accent-primary);
        opacity: 1;
    }

    /* Burger Animation when active */
    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
}