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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

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

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

.navbar.scrolled {
    box-shadow: var(--shadow);
}

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

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-image {
    height: 90px;
    width: auto;
    max-width: 375px;
    transition: transform 0.3s ease;
}

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

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-image {
        height: 67.5px;
        max-width: 270px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 60px;
        max-width: 225px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3.5rem;
    flex: 1;
    justify-content: center;
    max-width: 600px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('library-background.png') center/cover no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Magazine Styles */
.hero-container {
    perspective: 1500px;
}

.magazine {
    position: relative;
    width: 800px;
    height: 500px;
    margin: 3rem auto 0;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.magazine:hover {
    transform: rotateX(10deg);
}

.page-cover, .page {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    transform-origin: left center;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-style: preserve-3d;
    border-radius: 0 8px 8px 0;
}

.page-cover {
    left: 50%;
    z-index: 10;
    background-color: #1a1a2e;
    color: #fff;
}

.page {
    left: 50%;
    z-index: 1;
}

.magazine:hover .page-cover {
    transform: rotateY(-180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.back {
    transform: rotateY(180deg);
    background-color: #fff;
    color: var(--text-primary);
}

.front {
    background-color: #fafafa;
    color: var(--text-primary);
}

/* Cover Styles */
.cover-front {
    background: url('tech-leo-logo.png') center/cover no-repeat;
    color: #333;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.cover-front h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cover-front p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cover-decoration {
    font-size: 4rem;
    opacity: 0.7;
    color: #64b5f6;
}

.cover-back {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Page Content */
.page-content {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
}

/* Profile Photo Centering */
.profile-photo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-content h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.page-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.page-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.7;
}

/* Profile Photo */
.profile-photo {
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Navigation Links in Magazine */
.page-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.nav-link-mag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    justify-content: center;
    font-size: 0.9rem;
}

.nav-link-mag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.nav-link-mag i {
    font-size: 1.2rem;
}

/* CTA Button */
.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.cta-button:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Leonardo Title Styles */
.leonardo-title {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

/* Cover Logo now handled by background image */

/* Profile Picture Animation */
.profile-flip {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transition: transform 0.6s ease-in-out;
}

.profile-flip:hover {
  transform: rotateY(360deg);
}

/* LinkedIn Profile Link Styling */
.profile-photo a {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profile-photo a:hover {
  transform: scale(1.05);
}

/* iOS Mobile Optimizations */
@media screen and (max-width: 430px) {
    /* iPhone Pro Max and smaller */
    .hero-container {
        padding: 0 10px;
        min-height: calc(100vh - 60px);
        gap: 1rem;
    }
    
    .leonardo-title h1 {
        font-size: 2.8rem;
        letter-spacing: 0.08em;
        margin-bottom: 0.8rem;
    }
    
    .magazine {
        width: 92vw;
        max-width: 340px;
        height: 260px;
        margin: 1rem auto 0;
        transform-style: preserve-3d;
    }
    
    /* Disable 3D effects on mobile for better performance */
    .magazine:hover {
        transform: none;
    }
    
    .page-cover, .page {
        border-radius: 0 6px 6px 0;
    }
    
    .cover-front {
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Simplified mobile navigation */
    .page-nav {
        padding: 0.8rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .nav-link-mag {
        padding: 10px 6px;
        margin: 0;
        min-height: 44px; /* Apple's minimum touch target */
        font-size: 0.85rem;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .nav-link-mag i {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    
    .nav-link-mag span {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    /* Mobile profile adjustments */
    .profile-flip {
        width: 80px;
        height: 80px;
    }
    
    .profile-photo {
        margin-bottom: 0.8rem;
        display: flex;
        justify-content: center;
    }
    
    .page-content {
        padding: 0rem 0.8rem 0rem 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;
        transform: translateY(-8%);
    }
    
    .page-content h3 {
        font-size: 1.1rem;
        margin: 0.3rem 0 0.2rem 0;
        color: #2563eb;
    }
    
    .page-content p {
        font-size: 0.9rem;
        margin: 0;
        color: #666;
    }
    
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Safe area support for iPhone with notch */
    .hero {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Improve touch interactions */
    .profile-photo a:hover {
        transform: scale(1.02); /* Reduced for mobile */
    }
}

@media screen and (max-width: 390px) {
    /* iPhone 14 Pro and smaller */
    .leonardo-title h1 {
        font-size: 2.4rem;
    }
    
    .magazine {
        width: 90vw;
        max-width: 310px;
        height: 240px;
        margin: 0.8rem auto 0;
    }
    
    .page-nav {
        padding: 0.6rem;
        gap: 6px;
    }
    
    .nav-link-mag {
        font-size: 0.8rem;
        padding: 8px 4px;
        min-height: 40px;
    }
    
    .nav-link-mag i {
        font-size: 1rem;
    }
    
    .nav-link-mag span {
        font-size: 0.7rem;
    }
    
    .profile-flip {
        width: 70px;
        height: 70px;
    }
    
    .profile-photo {
        margin-bottom: 0.6rem;
    }
    
    .page-content {
        padding: 0rem 0.6rem 0rem 0.6rem;
        transform: translateY(-10%);
    }
}

@media screen and (max-width: 375px) {
    /* iPhone SE and smaller */
    .leonardo-title h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .magazine {
        width: 88vw;
        max-width: 290px;
        height: 200px;
        margin: 0.5rem auto 0;
    }
    
    .hero-container {
        gap: 0.8rem;
        padding: 0 8px;
    }
    
    .page-nav {
        padding: 0.5rem;
        gap: 4px;
    }
    
    .nav-link-mag {
        padding: 6px 3px;
        min-height: 38px;
        font-size: 0.75rem;
    }
    
    .nav-link-mag i {
        font-size: 0.9rem;
    }
    
    .nav-link-mag span {
        font-size: 0.65rem;
    }
    
    .profile-flip {
        width: 60px;
        height: 60px;
    }
    
    .profile-photo {
        margin-bottom: 0.5rem;
    }
    
    .page-content {
        padding: 0rem 0.4rem 0rem 0.4rem;
        transform: translateY(-12%);
    }
    
    .page-content h3 {
        font-size: 1rem;
        margin: 0.2rem 0;
    }
    
    .page-content p {
        font-size: 0.8rem;
    }
}

.leonardo-title h1 {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 
        0 0 30px rgba(255, 215, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.15em;
    margin: 0;
    font-family: 'Inter', sans-serif;
    animation: titleGlow 3s ease-in-out infinite alternate;
    backdrop-filter: blur(2px);
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 30px rgba(255, 215, 0, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.8),
            0 2px 4px rgba(0, 0, 0, 0.9);
    }
    100% {
        text-shadow: 
            0 0 40px rgba(255, 215, 0, 0.6),
            0 0 80px rgba(255, 215, 0, 0.3),
            0 4px 16px rgba(0, 0, 0, 0.8),
            0 2px 6px rgba(0, 0, 0, 0.9);
    }
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Page Content Styles */
.page-content {
    padding-top: 120px;
    min-height: calc(100vh - 120px);
}

/* Enhanced Services Page Styles */
.project-overview {
    margin-bottom: 4rem;
    text-align: center;
}

.overview-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.overview-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.overview-card h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pricing-structure {
    margin-bottom: 4rem;
}

.pricing-structure h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.milestone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.milestone-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.milestone-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.milestone-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.milestone-header h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.milestone-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.total-investment {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.total-investment h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.total-price {
    color: var(--accent-color);
    font-size: 2rem;
}

.whats-included {
    margin-bottom: 4rem;
}

.whats-included h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.included-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.included-item:hover {
    transform: translateY(-3px);
}

.included-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Agreement Term Styles */
.agreement-term {
    margin: 3rem 0;
}

.term-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.term-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.term-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.term-content p {
    line-height: 1.6;
    color: #666;
}

/* Post-Expiration Options Styles */
.post-expiration {
    margin: 3rem 0;
}

.options-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.option-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.option-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 5px solid transparent;
}

.option-card.renewal {
    border-left-color: #22c55e;
}

.option-card.forfeiture {
    border-left-color: #f59e0b;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.option-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
}

.option-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #666;
}

.option-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.option-card li {
    margin-bottom: 0.5rem;
    color: #666;
}

.option-benefit {
    background: #22c55e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.option-warning {
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.included-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.page-architecture {
    margin-bottom: 4rem;
}

.page-architecture h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

    .pages-list {
        background: white;
        border-radius: 15px;
        box-shadow: var(--shadow);
        overflow: hidden;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .option-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .term-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .term-card i {
        margin-top: 0;
    }

.page-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.page-item:last-child {
    border-bottom: none;
}

.page-item:hover {
    background: var(--background-alt);
}

.page-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 24px;
}

.page-item h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.ongoing-support {
    margin-bottom: 4rem;
}

.ongoing-support h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.support-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.support-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.support-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-card h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.support-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.scope-note {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.scope-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.client-responsibilities h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.responsibility-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.responsibility-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.responsibility-item h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Terms and Agreements Section */
.terms-agreements {
    background: var(--background-alt);
    padding: 4rem 0;
}

.agreement-content {
    max-width: 800px;
    margin: 0 auto;
}

.agreement-overview {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 2rem;
}

.agreement-overview i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.agreement-overview h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.key-terms {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.key-terms h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.key-terms ul {
    list-style: none;
    padding: 0;
}

.key-terms li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.key-terms li:last-child {
    border-bottom: none;
}

.pdf-download {
    margin-bottom: 2rem;
}

.pdf-download-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--primary-color);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.pdf-download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pdf-download-btn i {
    font-size: 2.5rem;
    color: #ff4757;
}

.btn-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

.btn-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
}

.legal-notice {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.legal-notice i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.code-animation {
    width: 300px;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    backdrop-filter: blur(10px);
}

.code-line {
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.code-line:nth-child(1) {
    width: 80%;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 60%;
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    width: 90%;
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Section Styles */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.credentials-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.credential-item:hover {
    transform: translateY(-2px);
}

.credential-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.credential-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    min-width: 40px;
}

.credential-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.credential-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.credential-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.credential-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.about-skills h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

.skill-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* Services/Pricing Section */
.pricing-content {
    max-width: 1000px;
    margin: 0 auto;
}

.main-pricing {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 3rem;
    border: 2px solid var(--primary-color);
}

.main-pricing i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.main-pricing h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.terms-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.terms-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.terms-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.domain-fee-card {
    background: #e8f4fd;
    border: 1px solid #3b82f6;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.domain-fee-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.domain-fee-card h4 i {
    margin-right: 0.5rem;
}

.domain-fee-card p {
    color: var(--text-primary);
    font-size: 1rem;
}

.rate-card {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.rate-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rate-card h4 i {
    margin-right: 0.5rem;
}

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

.task-item {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.task-item:hover {
    transform: translateY(-5px);
}

.task-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.task-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.task-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.important-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.important-note h4 {
    color: #856404;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.important-note h4 i {
    margin-right: 0.5rem;
}

.important-note p {
    color: #856404;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.fee-note {
    font-weight: 600;
    margin-bottom: 0 !important;
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.portfolio-image {
    height: 200px;
    background: var(--background-alt);
    position: relative;
}

.portfolio-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.portfolio-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.portfolio-tech span {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-links {
    margin-top: 1rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.portfolio-link i {
    font-size: 0.8rem;
}

/* Blackjack Cover */
.blackjack-cover {
    height: 100%;
    background: linear-gradient(135deg, #0f4c3a 0%, #2d8f47 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.playing-cards {
    display: flex;
    gap: -10px;
    margin-bottom: 1rem;
    perspective: 1000px;
}

.card {
    width: 60px;
    height: 85px;
    background: white;
    border-radius: 8px;
    border: 2px solid #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card-1 {
    transform: rotate(-15deg) translateX(10px);
    z-index: 2;
}

.card-2 {
    transform: rotate(15deg) translateX(-10px);
    z-index: 1;
}

.blackjack-cover:hover .card-1 {
    transform: rotate(-10deg) translateX(15px) translateY(-5px);
}

.blackjack-cover:hover .card-2 {
    transform: rotate(10deg) translateX(-15px) translateY(-5px);
}

.card-corner {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.top-left {
    top: 4px;
    left: 4px;
}

.bottom-right {
    bottom: 4px;
    right: 4px;
    transform: rotate(180deg);
}

.card-suit {
    font-size: 28px;
    font-weight: bold;
}

.card-1 .card-corner,
.card-1 .card-suit {
    color: #000;
}

.card-2 .card-corner,
.card-2 .card-suit {
    color: #dc2626;
}

.blackjack-title {
    color: #fbbf24;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(251, 191, 36, 0.3);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.6);
    }
}

/* RAG System Cover */
.rag-cover {
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.rag-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.rag-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rag-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

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

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.contact-item:hover {
    background: rgba(37, 99, 235, 0.03);
}

.contact-item.social-buttons {
    justify-content: flex-start;
    padding: 1rem 0.75rem;
}

.contact-item.social-buttons .social-links {
    gap: 1.5rem;
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* New Contact Section Styles */
.contact-details-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.contact-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

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

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Recommended Contact Item */
.contact-item.recommended {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.contact-item.recommended .contact-title,
.contact-item.recommended .contact-text {
    color: white;
}

.contact-item.recommended i {
    color: white;
}

/* Copy Button Styles */
.copy-btn {
    background: #f97316;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 60px;
    height: 32px;
    font-family: inherit;
}

.copy-btn:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

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

.copy-btn.copied {
    background: #22c55e !important;
    color: white !important;
}

/* Override for recommended section copy button */
.contact-item.recommended .copy-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-item.recommended .copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.contact-item.recommended .copy-btn.copied {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #16a34a !important;
}

/* Social Media Section */
.social-media {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.social-media h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Quote Form Section */
.quote-form-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
}

.quote-form-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.quote-form {
    display: grid;
    gap: 1.25rem;
}

.quote-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-form label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
    color: #9ca3af;
}

.quote-submit {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

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

/* Responsive Design for New Contact Section */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
        background: #f9fafb;
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }
    
    .contact-item.recommended {
        padding: 1rem;
    }
    
    .contact-details-group {
        width: 100%;
    }
    
    .copy-btn {
        align-self: flex-start;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .quote-form-section {
        padding: 1.5rem;
    }
    
    .quote-form-section h3 {
        font-size: 1.25rem;
    }
}


.linkedin-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.linkedin-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 1.0);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

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

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

    .hero-container {
        gap: 2rem;
        padding: 0 15px;
    }
    
    .leonardo-title h1 {
        font-size: 3.5rem;
    }
    
    .main-logo {
        width: 60px;
        height: 60px;
    }
    
    .magazine {
        width: 600px;
        height: 375px;
        margin: 2rem auto 0;
    }
    
    .cover-front h2 {
        font-size: 2rem;
    }
    
    .cover-decoration {
        font-size: 3rem;
    }
    
    .page-content h3 {
        font-size: 1.5rem;
    }

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

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

    .credentials-section {
        gap: 1rem;
    }
    
    .credential-item {
        padding: 0.75rem;
    }

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

    .main-pricing {
        padding: 2rem;
    }
    
    .terms-section {
        padding: 2rem;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .price {
        font-size: 2.5rem;
    }

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

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

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

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .leonardo-title h1 {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
    }
    
    .main-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .magazine {
        width: 400px;
        height: 250px;
        margin: 1.5rem auto 0;
    }
    
    .cover-front h2 {
        font-size: 1.5rem;
    }
    
    .cover-front p {
        font-size: 1rem;
    }
    
    .cover-decoration {
        font-size: 2rem;
    }
    
    .page-content h3 {
        font-size: 1.3rem;
    }
    
    .page-content p {
        font-size: 1rem;
    }
    
    .front, .back {
        padding: 1rem;
    }
    
    .nav-link-mag {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .page-nav {
        gap: 1rem;
        padding: 1.5rem 0.5rem;
    }
    
    /* Services Page Responsive */
    .milestone-grid,
    .support-rates,
    .responsibilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .included-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .page-item {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .overview-card,
    .agreement-overview {
        padding: 2rem 1.5rem;
    }
    
    .milestone-amount,
    .support-price {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

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

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .credential-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .credential-item i {
        font-size: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
