/* CSS Variables for Light/Dark Mode */
:root {
    /* Light Mode Colors (matching business card) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #000000;
    --text-secondary: #333333;
    --accent-green: #00d084;
    --accent-green-dark: #00b872;
    --accent-green-light: #00e896;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 208, 132, 0.3);
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-green: #00d084;
    --accent-green-dark: #00b872;
    --accent-green-light: #00e896;
    --border-color: #333333;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-hover: rgba(0, 208, 132, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

/* Smooth theme transitions for common elements */
section, .navbar, .container, .service-card, .stat-item, .contact-item, .portfolio-item,
.modal-content, .modal-header, .form-group input, .form-group textarea {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 10, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-green);
}

.nav-logo i {
    font-size: 1.8rem;
    animation: float 4s ease-in-out infinite;
}

.nav-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    color: white;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.nav-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.nav-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.nav-toggle:hover {
    transform: scale(1.05);
    background: var(--accent-green-dark);
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.4);
}

.nav-toggle:active {
    transform: scale(0.95);
}

#themeIcon {
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
}

.nav-toggle.clicked #themeIcon {
    animation: themeToggleRotate 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes themeToggleRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.green-shape {
    position: absolute;
    background: var(--accent-green);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.shape-top {
    width: 800px;
    height: 800px;
    top: -400px;
    right: -200px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
}

.shape-right {
    width: 600px;
    height: 600px;
    bottom: -300px;
    right: -150px;
    background: linear-gradient(225deg, var(--accent-green-dark), var(--accent-green));
    animation-delay: 2s;
}

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

.hero-title .text-green {
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title .text-green:last-of-type {
    animation-delay: 0.2s;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.text-green {
    color: var(--accent-green);
}

.text-black {
    color: var(--text-primary);
}

.hero-subtitle {
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle .name {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle .title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 400;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

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

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-green);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.section-title i {
    font-size: 2.5rem;
    transition: transform 0.4s ease;
    display: inline-block;
}

.section-title:hover i {
    transform: scale(1.1) rotate(5deg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.stat-item:hover::after {
    width: 60%;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
    display: inline-block;
}

.stat-item:hover i {
    transform: scale(1.1) translateY(-3px);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.service-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-green);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.03) rotate(2deg);
}

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

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-secondary);
}

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

.portfolio-item {
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    background: var(--bg-secondary);
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.portfolio-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-item-image {
    transform: scale(1.03);
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-item-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-item-title {
    transform: translateY(0);
}

/* Portfolio Modal */
.portfolio-modal-content {
    max-width: 900px;
    width: 95%;
}

.portfolio-modal-body {
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
}

.portfolio-modal-image-container {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-modal-image-container img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.portfolio-modal-description {
    padding: 2rem;
    background: var(--bg-primary);
}

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

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: var(--accent-green);
    border-radius: 0 5px 5px 0;
    transition: width 0.4s ease;
    opacity: 0.1;
}

.contact-item:hover::before {
    width: 4px;
}

.contact-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-green);
    width: 50px;
    text-align: center;
    transition: transform 0.4s ease;
    display: inline-block;
}

.contact-item:hover i {
    transform: scale(1.15) rotate(5deg);
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--accent-green);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-green-dark);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.4s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus + i,
.form-group textarea:focus + i {
    color: var(--accent-green);
    transform: translateY(-50%) scale(1.1);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-green);
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.form-group textarea + i {
    top: 1.5rem;
    transform: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.btn-submit:hover i {
    transform: translateX(3px);
}

.btn-submit i {
    transition: transform 0.4s ease;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.4s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-primary);
    padding: 0;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

.modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

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

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

#turnstile-container {
    display: flex;
    justify-content: center;
}


/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-overlay p {
    font-size: 1.2rem;
}

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

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.12;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 1rem 2rem;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

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

    .hero-subtitle .name {
        font-size: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .modal-content {
        width: 95%;
    }
}

/* Shortlink Page Styles */
.shortlink-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
}

.shortlink-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px var(--shadow);
    animation: fadeInUp 0.6s ease-out;
}

.shortlink-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.shortlink-header i {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    display: block;
}

.shortlink-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.shortlink-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.shortlink-form {
    margin-bottom: 2rem;
}

.shortlink-form .form-group {
    margin-bottom: 1.5rem;
}

.shortlink-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.shortlink-form input[type="url"],
.shortlink-form input[type="text"] {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.4s ease;
    line-height: 1.5;
}

.shortlink-form .form-group {
    position: relative;
}

.shortlink-form .form-group input + i {
    position: absolute;
    left: 1rem;
    top: calc(0.95rem * 1.4 + 0.5rem + 1.75rem);
    transform: translateY(-50%);
    color: var(--accent-green);
    font-size: 1.1rem;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.shortlink-form input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
    transform: translateY(-2px);
}

.shortlink-form input:focus + i {
    color: var(--accent-green);
    transform: translateY(-50%) scale(1.1);
}

.input-with-prefix {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.input-with-prefix:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
    transform: translateY(-2px);
}

.input-prefix {
    padding: 1rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    border-right: 2px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

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

.input-with-prefix .input-wrapper input {
    flex: 1;
    border: none;
    padding: 1rem 1rem 1rem 3rem;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    min-width: 0;
    line-height: 1.5;
}

.input-with-prefix .input-wrapper input:focus {
    box-shadow: none;
    transform: none;
    outline: none;
}

.shortlink-form .input-with-prefix .input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 0 !important;
    bottom: 0 !important;
    margin: auto 0;
    transform: none !important;
    color: var(--accent-green);
    font-size: 1.1rem;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.1rem;
}

.shortlink-form .input-with-prefix:focus-within .input-wrapper i {
    transform: scale(1.1) !important;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.shortlink-modal-content {
    max-width: 550px;
    width: 90%;
}

.shortlink-modal-body {
    padding: 2rem;
}

.result-success {
    text-align: center;
    padding: 0;
}

.result-success i {
    font-size: 3.5rem;
    color: var(--accent-green);
    margin-bottom: 1.25rem;
    display: inline-block;
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


.result-link {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.result-link input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.result-link input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

.btn-copy {
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    width: 56px;
    height: 48px;
    flex-shrink: 0;
    line-height: 1;
}

.btn-copy i {
    font-size: 1.1rem;
    transition: color 0.3s ease;
    color: var(--accent-green);
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 1.1rem;
    height: 1.1rem;
    text-align: center;
}

.btn-copy:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
}

.btn-copy:hover i {
    color: white;
}

.btn-copy:active {
    transform: translateY(0);
}

.result-info {
    text-align: left;
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.result-info p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.result-info p:first-child {
    margin-top: 0;
}

.result-info p:last-child {
    margin-bottom: 0;
}

.result-info strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 0.5rem;
}

.result-info span {
    color: var(--accent-green);
    word-break: break-all;
    font-weight: 500;
}

.error-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
    border-radius: 10px;
    text-align: center;
    animation: fadeInUp 0.4s ease-out;
}

.error-container i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
    display: block;
}

.error-container p {
    color: #e74c3c;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .shortlink-card {
        padding: 2rem;
    }

    .shortlink-header h1 {
        font-size: 1.5rem;
    }

    .result-link {
        flex-direction: column;
    }

    .btn-copy {
        width: 100%;
    }
}

