/* ============================================
   MODERN ENHANCEMENTS FOR STOFFA TENDE SITE
   ============================================ */

/* Modern Color Palette */
:root {
    --primary-color: #2680f0;
    --primary-hover: #1a5fc4;
    --accent-color: #b33f8a;
    --accent-hover: #9a2f72;
    --text-dark: #353a3f;
    --text-light: #858d94;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Improvements */
body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header Improvements - Artisan Style */
.header, .header2, .header3, .header4 {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.header::before, .header2::before, .header3::before, .header4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(38, 128, 240, 0.15) 0%, rgba(179, 63, 138, 0.15) 100%);
    z-index: 1;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, rgba(38, 128, 240, 0.15) 0%, rgba(179, 63, 138, 0.15) 100%);
    }
    50% {
        background: linear-gradient(135deg, rgba(179, 63, 138, 0.15) 0%, rgba(38, 128, 240, 0.15) 100%);
    }
}

.header::after, .header2::after, .header3::after, .header4::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

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

.header > .container, .header2 > .container, 
.header3 > .container, .header4 > .container {
    position: relative;
    z-index: 2;
}

/* Navigation Improvements */
.top-nav ul li a {
    position: relative;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

/* Navbar moderna (desktop): barra unica, voci compatte e allineate */
@media (min-width: 769px) {
    .header .container,
    .header2 .container,
    .header3 .container,
    .header4 .container {
        position: relative;
    }

    /* Nascondi hamburger su desktop */
    span.menu {
        display: none;
    }

    .col-md-9.top-nav {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-top: 18px;
    }

    ul.nav1 {
        display: flex !important;
        position: static !important;
        margin: 0 !important;
        padding: 10px 10px !important;
        gap: 6px;
        align-items: center;
        background: rgba(53, 58, 63, 0.72);
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 14px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    }

    .top-nav ul li {
        float: none !important;
        display: inline-flex !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .top-nav ul li a {
        padding: 10px 12px !important;
        font-size: 13px !important;
        letter-spacing: 0.6px;
        border-radius: 10px !important;
        background: transparent !important;
        transform: none !important;
    }

    .top-nav ul li a:hover {
        background: rgba(255, 255, 255, 0.10) !important;
        transform: none !important;
    }

    .top-nav ul li a.active {
        background: rgba(38, 128, 240, 0.18) !important;
    }
}

/* Phone Number Styling - Evidenziato ma non gigantesco */
.top-nav ul li a[href^="tel:"] {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    background: linear-gradient(135deg, rgba(38, 128, 240, 0.95) 0%, rgba(179, 63, 138, 0.85) 100%) !important;
}

.top-nav ul li a[href^="tel:"] .fa-phone {
    font-size: 16px;
    margin-right: 10px;
}

/* Logo: dimensione e allineamento più moderni */
.header-logo {
    padding-top: 14px;
}
.header-logo img {
    max-width: 210px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}
@media (max-width: 768px) {
    .header-logo img {
        max-width: 170px;
    }
}

.top-nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.top-nav ul li a:hover::before,
.top-nav ul li a.active::before {
    width: 100%;
}

.top-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.top-nav ul li a.active {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero moderno (solo home) */
.header-hero {
    max-width: 720px;
    margin-top: 8.5em;
    background: rgba(53, 58, 63, 0.72);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 28px 28px 24px 28px;
    box-shadow: var(--shadow-lg);
}
.header-hero h1 {
    color: #fff;
    font-size: 44px;
    line-height: 1.08;
    margin: 0 0 14px 0;
    letter-spacing: 0.5px;
    font-weight: 800;
}
.header-hero p {
    color: rgba(255,255,255,0.88);
    margin: 0 0 18px 0;
    font-size: 16px;
    letter-spacing: 0.3px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}
.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff !important;
}
.btn-modern-secondary {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff !important;
}
.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.hero-meta {
    margin-top: 14px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    letter-spacing: 0.6px;
}
.hero-meta strong { color: rgba(255,255,255,0.92); font-weight: 800; }

@media (max-width: 768px) {
    .header-hero {
        margin-top: 4.8em;
        padding: 18px;
        border-radius: 14px;
    }
    .header-hero h1 {
        font-size: 30px;
    }
    .header-hero p {
        font-size: 14px;
    }
}

/* Services Section Improvements - Artisan Style */
.services {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(38, 128, 240, 0.03) 0%, transparent 70%);
    animation: floatBackground 20s ease-in-out infinite;
}

@keyframes floatBackground {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(50px) translateY(30px); }
}

.services h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease 0.3s forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    animation: expandLine 0.8s ease 0.5s forwards;
    transform-origin: center;
    transform: translateX(-50%) scaleX(0);
}

@keyframes expandLine {
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

.services-grids {
    margin-top: 60px;
}

.services-grids-info {
    padding: 40px 30px;
    border-radius: 16px;
    transition: var(--transition);
    margin-bottom: 40px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpService 0.6s ease forwards;
}

.services-grids-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.services-grids-info:hover::before {
    left: 100%;
}

.services-grids-info:nth-child(1) { animation-delay: 0.2s; }
.services-grids-info:nth-child(2) { animation-delay: 0.4s; }
.services-grids-info:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUpService {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grids-info:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(38, 128, 240, 0.2);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-color: var(--primary-color);
}

.services-grids-info span {
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    position: relative;
    z-index: 1;
}

.services-grids-info:hover span {
    transform: scale(1.15) rotate(10deg);
    filter: drop-shadow(0 8px 15px rgba(38, 128, 240, 0.3));
}

.services-grids-info h4 {
    margin: 25px 0 15px;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
    font-size: 22px;
    position: relative;
    z-index: 1;
}

.services-grids-info:hover h4 {
    color: var(--primary-color);
    transform: translateX(5px);
}

.services-grids-info p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* Contact Form Modern Styling */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.contact-form h4 {
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.contact-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-form .form-row input {
    flex: 1;
    min-width: 200px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Raleway', sans-serif;
    transition: var(--transition);
    background: #fff;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
    opacity: 1;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 128, 240, 0.1);
    transform: translateY(-2px);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: visible !important;
    width: auto !important;
    min-width: 200px;
    white-space: nowrap;
    display: inline-block;
    margin-top: 20px;
}

.contact-form input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-form input[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

.contact-form input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent-hover) 100%);
}

.contact-form input[type="submit"]:active {
    transform: translateY(-1px);
}

/* Alert Messages */
.status.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.status.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

/* Map Improvements */
.map {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Portfolio Gallery - Enhanced for Artisan Showcase */
.portfolio {
    padding: 60px 0;
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
}

.portfolio-bottom {
    margin-top: 50px;
}

.portfolio .port-left {
    margin-bottom: 30px;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpPortfolio 0.6s ease forwards;
}

.portfolio .port-left:nth-child(1) { animation-delay: 0.1s; }
.portfolio .port-left:nth-child(2) { animation-delay: 0.2s; }
.portfolio .port-left:nth-child(3) { animation-delay: 0.3s; }
.portfolio .port-left:nth-child(4) { animation-delay: 0.4s; }
.portfolio .port-left:nth-child(5) { animation-delay: 0.5s; }
.portfolio .port-left:nth-child(6) { animation-delay: 0.6s; }
.portfolio .port-left:nth-child(7) { animation-delay: 0.7s; }
.portfolio .port-left:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUpPortfolio {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio .port-left a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: #fff;
}

.portfolio .port-left a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(38, 128, 240, 0.85) 0%, rgba(179, 63, 138, 0.85) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    border-radius: 12px;
}

.portfolio .port-left a::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 48px;
    z-index: 3;
    transition: var(--transition);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.portfolio .port-left a:hover::before {
    opacity: 1;
}

.portfolio .port-left a:hover::after {
    transform: translate(-50%, -50%) scale(1);
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.portfolio img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: var(--transition);
    transform: scale(1);
}

.portfolio .port-left:hover img {
    transform: scale(1.1);
}

.portfolio .port-left:hover a {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Portfolio Grid Masonry Effect */
.portfolio-one {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.portfolio .port-left {
    flex: 0 0 calc(25% - 30px);
    margin: 15px;
}

@media (max-width: 992px) {
    .portfolio .port-left {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (max-width: 768px) {
    .portfolio .port-left {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 480px) {
    .portfolio .port-left {
        flex: 0 0 calc(100% - 30px);
    }
}

/* Footer Improvements - Artisan Style */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 50px 0 30px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-right {
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-right p {
    margin: 15px 0;
    line-height: 1.9;
    font-size: 15px;
    opacity: 0.9;
}

.footer-right a {
    transition: var(--transition);
    display: inline-block;
    margin: 5px 10px 5px 0;
    position: relative;
}

.footer-right a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-right a:hover::after {
    width: 100%;
}

.footer-right a:hover {
    transform: translateY(-2px);
    color: var(--primary-color) !important;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Intersection Observer for scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .contact-form {
        padding: 25px;
    }
    
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form .form-row input {
        min-width: 100%;
    }
    
    .services-grids-info {
        margin-bottom: 30px;
    }
    
    .header, .header2, .header3, .header4 {
        background-attachment: scroll;
        min-height: 500px;
    }
    
    .top-nav ul li a {
        padding: 2em 1em;
        font-size: 13px;
    }
    
    .services h3 {
        font-size: 18px;
    }
}

/* Button Improvements */
.read-more a,
.contact-form input[type="submit"] {
    position: relative;
    z-index: 1;
}

/* Loading State */
.contact-form input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Testimonials Section - Enhanced */
.testimonials {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 80px 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(38, 128, 240, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(179, 63, 138, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* About Section - Enhanced */
.about {
    padding: 60px 0;
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 50%, #fff 100%);
}

.about-info {
    padding: 40px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.about-info img {
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 4px solid #fff;
    filter: brightness(1) contrast(1);
}

.about-info img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(38, 128, 240, 0.3);
    filter: brightness(1.05) contrast(1.05);
}

.about-text-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text-info.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Social Icons Enhancement */
.social-icons ul li a span {
    transition: var(--transition);
    border-radius: 50%;
}

.social-icons ul li a:hover span {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Scroll to Top Button - Enhanced */
#toTop {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    width: 55px;
    height: 55px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

#toTop::before {
    content: '\f062';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 20px;
}

#toTop:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 25px rgba(38, 128, 240, 0.4);
    opacity: 1;
}

#toTop:active {
    transform: translateY(-5px) scale(1.05);
}

/* Text Improvements */
h3, h4, h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

p {
    line-height: 1.8;
}

/* Card-like Sections - Enhanced */
.about-text-info,
.services-grids-info {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-text-info::before,
.services-grids-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(38, 128, 240, 0.05), transparent);
    transition: left 0.5s;
}

.about-text-info:hover::before,
.services-grids-info:hover::before {
    left: 100%;
}

.about-text-info:hover,
.services-grids-info:hover {
    box-shadow: var(--shadow-md);
}

/* Loading Animation for Images */
.portfolio img,
.about-info img {
    opacity: 0;
    animation: fadeInImage 0.6s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Pulse Animation for Important Elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(38, 128, 240, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(38, 128, 240, 0);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
