/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #a855f7;
    --dark-color: #0f0f23;
    --darker-color: #0a0a1a;
    --light-color: #ffffff;
    --gray-color: #6b7280;
    --light-gray: #f8fafc;
    --border-color: #e5e7eb;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-hover: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
    --shadow-hover: 0 20px 40px rgba(99, 102, 241, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 50000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-brand h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

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

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



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}



.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="%236366f1" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.code-animation {
    width: 300px;
    height: 200px;
    background: var(--dark-color);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.code-line {
    height: 20px;
    background: var(--gradient);
    border-radius: 10px;
    margin: 15px 0;
    animation: typing 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 typing {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

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

/* About Section */
.about {
    padding: 100px 0;
    background: var(--light-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

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

.skill-item span {
    font-weight: 600;
    color: var(--dark-color);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-gray);
}

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

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}



.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 25px;
}

/* Removed hover animations for static icons */

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-hover);
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Removed service icon hover animations */

.service-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.4s ease;
}

/* Removed service icon i hover animations */

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

.service-card p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--gray-color);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* iOS Warning Triangle */
.ios-warning {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff6b6b;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    /* animation: pulse 2s infinite; - removed for static display */
    z-index: 10;
}

/* Removed ios-warning hover animation */

.ios-warning::after {
    content: attr(title);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.ios-warning:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Removed pulse animation keyframes */

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--light-color);
}

.portfolio-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: var(--light-gray);
    height: 300px;
    position: relative;
}

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

.portfolio-image {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0;
    z-index: 2;
    position: relative;
    transition: opacity 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.9);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    /* Desktop portfolio styles - restore original layout */
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .portfolio-item {
        height: 300px;
        min-height: auto;
    }
    
    .portfolio-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 15, 35, 0.9);
        color: white;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s ease;
        margin-top: 0;
        border-radius: 0;
        pointer-events: none;
    }
    
    .portfolio-image {
        padding: 0;
    }
    
    .portfolio-item:hover .portfolio-overlay {
        opacity: 1;
    }

    .portfolio-item:hover .portfolio-title {
        opacity: 0;
    }
}

.portfolio-overlay p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

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

/* Portfolio expandable styles */
.portfolio-item.expandable .portfolio-overlay {
    opacity: 1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    padding: 0 2rem;
}

.portfolio-item.expandable.expanded .portfolio-overlay {
    max-height: 400px;
    padding: 2rem;
}

.portfolio-item.expandable .portfolio-title {
    opacity: 1;
}

.portfolio-actions {
    margin-top: 1rem;
    text-align: center;
}

.portfolio-actions .btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.portfolio-actions .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--dark-color);
    color: white;
}

.contact .section-title {
    color: white;
}

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

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: white;
}

.contact-item p {
    color: #cbd5e1;
    margin: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group select option {
    background: var(--dark-color);
    color: white;
}

/* GDPR Consent Styles */
.gdpr-consent {
    margin: 2rem 0 1.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 10px;
    height: 10px;
    margin: 0;
    cursor: pointer;
}

.checkmark {
    width: 5px;
    height: 5px;
    border: 10px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    margin-top: 3px;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.consent-text {
    color: #cbd5e1;
    flex: 1;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--secondary-color);
}

.gdpr-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.gdpr-info p {
    margin-bottom: 1rem;
    color: white;
    font-size: 0.9rem;
}

.gdpr-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gdpr-info li {
    padding: 0.4rem 0;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gdpr-info li:last-child {
    border-bottom: none;
}

.gdpr-info strong {
    color: white;
    font-weight: 600;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: var(--light-color);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-text h4 {
    color: var(--light-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #cccccc;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-text a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-accept {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-accept:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-decline {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-decline:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.btn-settings {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-settings:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

/* Cookie Modal Styles */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    backdrop-filter: blur(5px);
}

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

.cookie-modal-content {
    background: var(--light-color);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.cookie-close {
    font-size: 2rem;
    color: var(--gray-color);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.cookie-close:hover {
    color: var(--dark-color);
}

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

.cookie-category {
    margin-bottom: 2rem;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.cookie-category-info p {
    margin: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Cookie Switch Styles */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--primary-color);
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    background-color: var(--primary-color);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1rem 2rem 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-modal-footer button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-save {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-save:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-accept-all {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-accept-all:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--light-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.testimonial-content {
    margin-bottom: 25px;
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.stars i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-color);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 50px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
}

.author-info span {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.2;
    margin-top: 2px;
}

/* Testimonials Responsive */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-grid {
        position: relative;
        overflow: hidden;
        height: auto;
        display: block;
    }
    
    .testimonial-card {
        display: none;
        padding: 25px;
        width: 100%;
        margin: 0;
    }
    
    .testimonial-card.active {
        display: block;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .testimonials-navigation {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .testimonial-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: background 0.3s ease;
        border: 2px solid var(--accent-color);
    }
    
    .testimonial-dot.active {
        background: var(--accent-color);
    }
}

/* Footer */
.footer {
    background: var(--darker-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #94a3b8;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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



.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {

    
    .dark-mode-toggle-container {
        display: none;
    }
    
    .dark-mode-toggle {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 1rem 60px;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    }
    
    /* Dark mode hero override for mobile */
    :root[data-theme="dark"] .hero {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    }
    
    :root[data-theme="dark"] .hero-title {
        color: var(--dark-color);
    }
    
    :root[data-theme="dark"] .hero-description {
        color: var(--gray-color);
    }
    
    .hero::before {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    

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

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

    /* Portfolio mobile styles */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-overlay {
        opacity: 0;
        position: absolute;
        background: rgba(15, 15, 35, 0.95);
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 10px;
        pointer-events: none;
        transition: opacity 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    
    .portfolio-item.expanded .portfolio-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    
    .portfolio-title {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 0.5rem;
        border-radius: 5px;
        font-size: 0.9rem;
        font-weight: 600;
        text-align: center;
        z-index: 2;
    }

    .portfolio-item {
        height: auto;
        min-height: 300px;
    }

    .portfolio-image {
        padding: 1rem;
    }
    
    /* Clients responsive */
    .clients {
        padding: 4rem 0;
    }
    
    .clients-track {
        gap: 2rem;
    }
    
    .client-logo {
        width: 100px;
        height: 50px;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Remove white edges on mobile */
    * {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    .container {
        padding: 0 10px;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .nav {
        padding: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .header {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .hero {
        padding: 100px 1rem 60px;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    }
    
    /* Dark mode hero override for mobile 480px */
    :root[data-theme="dark"] .hero {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    }
    
    :root[data-theme="dark"] .hero-title {
        color: var(--dark-color);
    }
    
    :root[data-theme="dark"] .hero-description {
        color: var(--gray-color);
    }
    
    .hero::before {
        display: none;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .skill-item {
        padding: 1rem;
    }
    
    .skill-item i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .skill-item span {
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .portfolio-item {
        height: auto;
        min-height: 200px;
    }
    
    .portfolio-image {
        padding: 0.8rem;
    }
    
    .portfolio-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-overlay {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .portfolio-overlay p {
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .portfolio-tech {
        gap: 0.3rem;
    }
    
    .portfolio-tech span {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    /* Mobile-only expandable service cards */
    @media (max-width: 768px) {
        .service-card.expandable {
            cursor: pointer;
        }
        
        .service-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }
        
        .service-header .service-icon {
            flex-shrink: 0;
        }
        
        .service-header h3 {
            flex: 1;
            margin: 0;
            font-size: 1rem;
        }
        
        .expand-icon {
            display: block;
            color: var(--primary-color);
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }
        
        .service-card.expanded .expand-icon {
            transform: rotate(180deg);
        }
        
        .service-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            margin-top: 0;
        }
        
        .service-card.expanded .service-content {
            max-height: 300px;
            margin-top: 1rem;
        }
        
        .service-content p {
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }
        
        .service-content ul {
            margin: 0;
            padding-left: 1.2rem;
        }
        
        .service-content li {
             font-size: 0.85rem;
             margin-bottom: 0.3rem;
         }
    }
    
    /* Desktop - show full service cards */
    @media (min-width: 769px) {
        .expand-icon {
            display: none !important;
        }
        
        .service-content {
            max-height: none !important;
            overflow: visible !important;
            margin-top: 1rem !important;
        }
        
        .service-header {
            display: block;
        }
        
        .service-header h3 {
            margin: 0 0 1rem 0;
            font-size: 1.5rem;
        }
    }
    
    .code-animation {
        display: none;
    }
    
    * {
        box-sizing: border-box;
    }
    
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero, .about, .services, .portfolio {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Disable horizontal scrolling completely */
    html {
        overflow-x: hidden !important;
        touch-action: pan-y !important;
    }
    
    body {
        touch-action: pan-y !important;
        overscroll-behavior-x: none !important;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Intro Animation Mobile Styles */
    .intro-title {
        font-size: 1.8rem;
    }
    
    .intro-subtitle {
        font-size: 1rem;
    }
    
    .intro-animation .code-animation {
        width: 280px;
        height: 180px;
        padding: 1.5rem;
    }
    
    .intro-touch-prompt p {
        font-size: 0.5rem;
    }
    
    .touch-indicator {
        width: 50px;
        height: 50px;
    }
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1.5rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer button {
        width: 100%;
    }
}

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

/* Intro Animation Overlay - Mobile Only */
.intro-overlay {
    display: none;
}

@media (max-width: 768px) {
    .intro-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        min-width: 100vw;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        color: #ffffff;
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        visibility: visible;
        transition: opacity 1s ease, visibility 1s ease;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .intro-overlay.hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: scale(0.95);
    }

    .intro-content {
        text-align: center;
        color: var(--light-color);
        max-width: 800px;
        padding: 2rem;
    }

    .intro-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 2rem;
        opacity: 0;
        animation: fadeInUp 1.5s ease 0.5s forwards;
    }

    .intro-subtitle {
        color: var(--primary-color);
        font-size: 1.4rem;
        font-weight: 400;
    }

    .intro-animation {
        margin: 3rem 0;
        opacity: 0;
        animation: fadeInUp 1.5s ease 1.5s forwards;
    }

    .intro-animation .code-animation {
        display: none;
    }

    .intro-touch-prompt {
        opacity: 0;
        animation: fadeInUp 1.5s ease 1.5s forwards;
        cursor: pointer;
        z-index: 10001;
        position: relative;
        margin-top: 3rem;
        text-align: center;
    }

    .intro-touch-prompt p {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
        color: #ffffff;
        font-weight: 500;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .touch-indicator {
        width: 80px;
        height: 80px;
        border: 3px solid #00d4ff;
        border-radius: 50%;
        margin: 0 auto;
        position: relative;
        animation: pulse 2s infinite;
        background: rgba(0, 212, 255, 0.1);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }

    .touch-indicator::after {
        content: '👆';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        animation: touchPulse 2s infinite;
    }

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

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

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-hover);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-color);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-color);
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--light-color);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: var(--gray-color);
    line-height: 1.6;
    margin: 0;
    padding-top: 10px;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

/* Process Section */
.process {
    padding: 100px 0;
    background: white;
}

.process-table-container {
    margin-top: 60px;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.process-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.process-table thead {
    background: var(--gradient);
}

.process-table th {
    padding: 20px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
}

.process-table td {
    padding: 25px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.process-table tbody tr:last-child td {
    border-bottom: none;
}

.process-table tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.3s ease;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.process-table h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.process-table p {
    color: var(--gray-color);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature {
    background: var(--gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Process Responsive */
@media (max-width: 768px) {
    .process {
        padding: 60px 0;
    }
    
    .process-table-container {
        display: none;
    }
    
    .process-mobile-accordion {
        display: block;
        margin-top: 2rem;
    }
    
    .process-step {
        background: white;
        border-radius: 10px;
        margin-bottom: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .process-header {
        display: flex;
        align-items: center;
        padding: 1rem;
        cursor: pointer;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .process-header .step-number {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        margin-right: 1rem;
        font-size: 1.1rem;
    }
    
    .process-header h3 {
        flex: 1;
        margin: 0;
        font-size: 1rem;
    }
    
    .expand-icon {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }
    
    .process-step.expanded .expand-icon {
        transform: rotate(180deg);
    }
    
    .process-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: white;
    }
    
    .process-step.expanded .process-content {
        max-height: 300px;
        padding: 1rem;
    }
    
    .process-content p {
        margin-bottom: 1rem;
        color: #666;
        line-height: 1.6;
    }
    
    .process-features {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .process-feature {
        background: var(--light-color);
        color: var(--primary-color);
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
    }
}

/* Desktop - hide mobile accordion */
@media (min-width: 769px) {
    .process-mobile-accordion {
        display: none;
    }
}

/* Why Choose Me Section */
.why-choose-me {
    padding: 100px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.benefit-card p {
    margin: 0;
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 1rem;
}

.cta-section {
    text-align: center;
    margin-top: 80px;
    padding: 50px;
    background: var(--light-color);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.cta-section h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 600;
}

.cta-section p {
    margin: 0 0 30px 0;
    color: var(--gray-color);
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover {
    background: var(--gradient-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px) scale(1.02);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Why Choose Me Responsive */
@media (max-width: 768px) {
    .why-choose-me {
        padding: 60px 0;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
    
    .benefit-card .benefit-icon {
        margin-bottom: 0.8rem;
    }
    
    .benefit-card .benefit-icon i {
        font-size: 2rem;
    }
    
    .benefit-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .benefit-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* Desktop - ensure full benefit cards */
@media (min-width: 769px) {
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 30px !important;
    }
    
    .benefit-card {
        padding: 40px 30px !important;
    }
    
    .benefit-card h3 {
        font-size: 1.4rem !important;
    }
    
    .benefit-card p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .benefit-icon {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 25px !important;
    }
    
    .benefit-icon i {
        font-size: 2rem !important;
    }

    /* Timeline expandable styles for mobile */
    .timeline-item.expandable {
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .timeline-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        margin-bottom: 0;
    }

    .timeline-header .timeline-icon {
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .timeline-header h3 {
        flex: 1;
        margin: 0;
        font-size: 1rem;
    }

    .timeline-header .timeline-duration {
        margin: 0 1rem 0 0;
        flex-shrink: 0;
    }

    .timeline-header .expand-icon {
        color: var(--accent-color);
        transition: transform 0.3s ease;
        font-size: 1rem;
    }

    .timeline-item.expanded .expand-icon {
        transform: rotate(180deg);
    }

    .timeline-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 1rem;
    }

    .timeline-item.expanded .timeline-content {
        max-height: 500px;
        padding: 1rem;
    }

    /* Process expandable styles for mobile */
    .process-step.expandable {
        cursor: pointer;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 10px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .process-header {
        display: flex;
        align-items: center;
        padding: 15px;
        background: #f8f9fa;
        position: relative;
    }

    .process-header .step-number {
        width: 30px;
        height: 30px;
        margin-right: 15px;
        flex-shrink: 0;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
    }

    .process-header h3 {
        flex: 1;
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .process-step.expanded .expand-icon {
        transform: rotate(180deg);
    }

    .process-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 15px;
    }

    .process-step.expanded .process-content {
        max-height: 500px;
        padding: 15px;
    }

    .process-content p {
        margin: 0 0 15px 0;
        font-size: 14px;
        line-height: 1.5;
    }

    .step-features {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
    }

    .step-features .feature {
         background: #e3f2fd;
         color: #1976d2;
         padding: 4px 8px;
         border-radius: 12px;
         font-size: 12px;
         font-weight: 500;
     }
}

/* Desktop - show full process steps and timeline */
@media (min-width: 769px) {
    .expand-icon {
        display: none !important;
    }
    
    .timeline-content {
        max-height: none !important;
        overflow: visible !important;
        padding: 1rem !important;
    }
    
    .process-content {
        max-height: none !important;
        overflow: visible !important;
        padding: 15px !important;
    }
    
    .timeline-header {
        display: block !important;
        padding: 0 !important;
        background: none !important;
        border-radius: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .process-header {
        display: block !important;
        padding: 0 !important;
        background: none !important;
    }
    
    .timeline-header h3,
    .process-header h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }




}


     
     .benefit-card {
         padding: 30px 20px;
     }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .benefit-icon i {
        font-size: 1.5rem;
    }
    
    .benefit-card h3 {
        font-size: 1.2rem;
    }
    
    .cta-section {
        margin-top: 50px;
        padding: 30px 20px;
    }
    
    .cta-section h3 {
        font-size: 1.3rem;
    }
    
    .cta-section p {
         font-size: 0.9rem;
     }
 }

/* Quick Contact Button */
.quick-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.quick-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.6);
}

.quick-contact-btn i {
    font-size: 1.5rem;
    color: white;
}

.contact-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.contact-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--dark-color);
}

.quick-contact-btn:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(147, 51, 234, 0.6), 0 0 0 10px rgba(147, 51, 234, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
    }
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    margin: 0 0 25px 0;
    color: var(--gray-color);
    text-align: center;
}

.contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: var(--light-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-option:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

.contact-option i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-option span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Quick Contact Responsive */
@media (max-width: 768px) {
    .quick-contact-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .quick-contact-btn i {
        font-size: 1rem;
    }
    
    .contact-tooltip {
        right: 60px;
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 25px 15px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contact-option {
         padding: 15px;
     }
 }

/* Project Timeline Section */
.project-timeline {
    padding: 100px 0;
    background: var(--light-color);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.timeline-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.timeline-icon i {
    font-size: 1.5rem;
    color: white;
}

.timeline-content h3 {
    margin: 0 0 15px 0;
    color: var(--dark-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.timeline-duration {
    margin-bottom: 15px;
}

.duration-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.timeline-content p {
    margin: 0 0 20px 0;
    color: var(--gray-color);
    line-height: 1.6;
}

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

.timeline-features li {
    padding: 8px 0;
    color: var(--gray-color);
    position: relative;
    padding-left: 25px;
}

.timeline-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.timeline-note {
    margin-top: 60px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow);
}

.note-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.note-icon i {
    font-size: 1.2rem;
    color: white;
}

.note-content h4 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.note-content p {
    margin: 0;
    color: var(--gray-color);
    line-height: 1.6;
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .project-timeline {
        padding: 60px 0;
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .timeline-item {
        padding: 25px 20px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .timeline-icon i {
        font-size: 1.2rem;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
    
    .timeline-note {
        margin-top: 40px;
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .note-content h4 {
        font-size: 1rem;
    }
}

/* Disclaimer Modal */
.disclaimer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.disclaimer-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.disclaimer-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.disclaimer-modal-header h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.disclaimer-modal-body {
    padding: 30px;
    color: var(--dark-color);
    line-height: 1.7;
}

.disclaimer-modal-body p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.disclaimer-modal-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.disclaimer-modal-body li {
    margin-bottom: 10px;
    color: var(--gray-color);
}

.disclaimer-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.btn-disclaimer-accept {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-disclaimer-accept:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-disclaimer-cancel {
    background: transparent;
    color: var(--gray-color);
    border: 2px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-disclaimer-cancel:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

/* Disclaimer Modal Responsive */
@media (max-width: 768px) {
    .disclaimer-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .disclaimer-modal-header,
    .disclaimer-modal-body,
    .disclaimer-modal-footer {
        padding: 20px;
    }
    
    .disclaimer-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .disclaimer-modal-footer {
        flex-direction: column;
    }
    
    .btn-disclaimer-accept,
    .btn-disclaimer-cancel {
        width: 100%;
        padding: 15px;
    }
}

/* Disclaimer Modal Dark Mode */
:root[data-theme="dark"] .disclaimer-modal-content {
    background: var(--light-color);
    border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .disclaimer-modal-header {
    border-bottom: 1px solid var(--border-color);
}

:root[data-theme="dark"] .disclaimer-modal-header h3 {
    color: var(--dark-color);
}

:root[data-theme="dark"] .disclaimer-modal-body {
    color: var(--dark-color);
}

:root[data-theme="dark"] .disclaimer-modal-body p {
    color: var(--dark-color);
}

:root[data-theme="dark"] .disclaimer-modal-body li {
    color: var(--gray-color);
}

:root[data-theme="dark"] .disclaimer-modal-footer {
    border-top: 1px solid var(--border-color);
}

:root[data-theme="dark"] .btn-disclaimer-cancel {
    background: transparent;
    color: var(--gray-color);
    border: 2px solid var(--border-color);
}

:root[data-theme="dark"] .btn-disclaimer-cancel:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Dark Mode Styles */
:root[data-theme="dark"] {
    --primary-color: #818cf8;
    --secondary-color: #a78bfa;
    --accent-color: #c084fc;
    --dark-color: #f1f5f9;
    --darker-color: #e2e8f0;
    --light-color: #0f172a;
    --gray-color: #94a3b8;
    --light-gray: #1e293b;
    --border-color: #334155;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-hover: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --shadow: 0 10px 25px rgba(129, 140, 248, 0.1);
    --shadow-hover: 0 20px 40px rgba(129, 140, 248, 0.2);
}

/* Dark Mode Toggle */
.dark-mode-toggle-container {
    margin-left: 1rem;
}

.dark-mode-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 50px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.dark-mode-toggle i {
    position: absolute;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dark-mode-toggle .fa-moon {
    opacity: 1;
    transform: translateY(0);
    color: var(--dark-color);
}

.dark-mode-toggle .fa-sun {
    opacity: 0;
    transform: translateY(20px);
    color: #fbbf24;
}

:root[data-theme="dark"] .dark-mode-toggle .fa-moon {
    opacity: 0;
    transform: translateY(-20px);
}

:root[data-theme="dark"] .dark-mode-toggle .fa-sun {
    opacity: 1;
    transform: translateY(0);
}

/* Dark mode specific adjustments */
:root[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
}

:root[data-theme="dark"] .nav-menu {
    background: var(--light-color);
    border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .nav-link {
    color: var(--dark-color);
}

:root[data-theme="dark"] .nav-link:hover {
    color: var(--primary-color);
}

:root[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

:root[data-theme="dark"] .hero::before {
    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="%23818cf8" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
}

/* Dark mode specific element styles */
:root[data-theme="dark"] .section-title {
    color: var(--dark-color);
}

:root[data-theme="dark"] .about {
    background-color: var(--light-gray);
}

:root[data-theme="dark"] .services {
    background-color: var(--light-color);
}

:root[data-theme="dark"] .service-card {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

:root[data-theme="dark"] .service-card h3 {
    color: var(--dark-color);
}

:root[data-theme="dark"] .service-card p {
    color: var(--gray-color);
}

:root[data-theme="dark"] .service-icon i {
    color: white;
}

:root[data-theme="dark"] .portfolio {
    background-color: var(--light-gray);
}

:root[data-theme="dark"] .portfolio-main {
    background: var(--light-color);
}

:root[data-theme="dark"] .portfolio-filters {
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

:root[data-theme="dark"] .portfolio-header {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--light-gray) 100%);
}

:root[data-theme="dark"] .portfolio-main-title {
    color: var(--dark-color);
}

:root[data-theme="dark"] .portfolio-main-subtitle {
    color: var(--gray-color);
}

:root[data-theme="dark"] .filter-btn {
    background: var(--light-color);
    color: var(--dark-color);
    border: 2px solid var(--border-color);
}

:root[data-theme="dark"] .filter-btn:hover,
:root[data-theme="dark"] .filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

:root[data-theme="dark"] .portfolio-item {
    background: var(--light-color);
    border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .portfolio-item h3 {
    color: var(--dark-color);
}

:root[data-theme="dark"] .portfolio-item p {
    color: var(--gray-color);
}

:root[data-theme="dark"] .portfolio-tech {
    background: var(--border-color);
    color: var(--dark-color);
}

:root[data-theme="dark"] .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

:root[data-theme="dark"] .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

:root[data-theme="dark"] .skill-item {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

:root[data-theme="dark"] .skill-item i {
    color: var(--primary-color);
}

:root[data-theme="dark"] .dlaczego {
    background-color: var(--light-color);
}

:root[data-theme="dark"] .proces {
    background-color: var(--light-color);
}

:root[data-theme="dark"] .timeline {
    background-color: var(--light-color);
}

:root[data-theme="dark"] .timeline-item {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .timeline-item h3 {
    color: var(--dark-color);
}

:root[data-theme="dark"] .timeline-item p {
    color: var(--gray-color);
}

:root[data-theme="dark"] .timeline-date {
    background: var(--primary-color);
    color: var(--light-color);
}

:root[data-theme="dark"] .testimonial {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .testimonial p {
    color: var(--gray-color);
}

:root[data-theme="dark"] .testimonial-author {
    color: var(--dark-color);
}

:root[data-theme="dark"] .process-step {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .process-step h3 {
    color: var(--dark-color);
}

:root[data-theme="dark"] .process-step p {
    color: var(--gray-color);
}

:root[data-theme="dark"] .process-number {
    background: var(--primary-color);
    color: var(--light-color);
}

:root[data-theme="dark"] .faq-item {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .faq-question {
    color: var(--dark-color);
}

:root[data-theme="dark"] .faq-answer {
    color: var(--gray-color);
}

:root[data-theme="dark"] .contact {
    background-color: var(--light-color);
}

:root[data-theme="dark"] .contact-form {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .form-group input,
:root[data-theme="dark"] .form-group textarea {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

:root[data-theme="dark"] .form-group input::placeholder,
:root[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--gray-color);
}

:root[data-theme="dark"] .form-group label {
    color: var(--dark-color);
}

:root[data-theme="dark"] .footer {
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
}

:root[data-theme="dark"] .footer p {
    color: var(--gray-color);
}

:root[data-theme="dark"] .social-links a {
    color: var(--gray-color);
    border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .social-links a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

:root[data-theme="dark"] .why-choose-me {
    background-color: var(--light-color);
}

:root[data-theme="dark"] .project-timeline {
    background-color: var(--light-color);
}

:root[data-theme="dark"] .faq {
    background-color: var(--light-color);
}

:root[data-theme="dark"] .process {
    background-color: var(--light-color);
}

:root[data-theme="dark"] .quick-contact-btn {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

:root[data-theme="dark"] .quick-contact-btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

:root[data-theme="dark"] .contact-tooltip {
    background: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .contact-modal {
    background: rgba(0, 0, 0, 0.8);
}

:root[data-theme="dark"] .modal-content {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

:root[data-theme="dark"] .modal-header h3 {
    color: var(--dark-color);
}

:root[data-theme="dark"] .close-modal {
    color: var(--gray-color);
}

:root[data-theme="dark"] .close-modal:hover {
    color: var(--dark-color);
}

:root[data-theme="dark"] .contact-option {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

:root[data-theme="dark"] .contact-option:hover {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

:root[data-theme="dark"] .contact-option i {
    color: var(--primary-color);
}

:root[data-theme="dark"] .contact-option:hover i {
    color: var(--light-color);
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.scroll-animate-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.scroll-animate-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scroll-animate-scale.animate {
    opacity: 1;
    transform: scale(1);
}

/* Lazy Loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Portfolio Page Styles */
.portfolio-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.portfolio-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.portfolio-main-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-filters {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--gray-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.portfolio-main {
    padding: 60px 0;
    background: #fafbfc;
}

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

.portfolio-item-large {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.portfolio-item-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-item-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.portfolio-item-large:hover::before {
    opacity: 0;
}

.portfolio-simple-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-item-large:hover .portfolio-simple-title {
    opacity: 0;
}

.portfolio-image-large {
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 400px;
}

.portfolio-content-large {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    position: relative;
}

.portfolio-item-large:hover .portfolio-content-large {
    opacity: 1;
}

.portfolio-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.portfolio-title-large {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.portfolio-description-large {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

.portfolio-tech-large span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.portfolio-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.feature-item i {
    width: 16px;
    text-align: center;
}

.portfolio-actions {
    margin-top: auto;
}

.portfolio-actions .btn-primary {
    background: var(--gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.portfolio-actions .btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.portfolio-cta {
    padding: 80px 0;
    background: var(--gradient);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.cta-content .btn-primary {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.cta-content .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* Portfolio CTA Section */
.portfolio-cta-section {
    margin-top: 4rem;
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(80, 200, 120, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.portfolio-cta-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.portfolio-cta-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.portfolio-cta-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.portfolio-cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

@media (max-width: 768px) {
    .portfolio-cta-section {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
    
    .portfolio-cta-content h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-cta-content p {
        font-size: 0.9rem;
    }
}

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

/* Different gradient backgrounds for categories */
.portfolio-item-large[data-category="automation"] .portfolio-image-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-item-large[data-category="web-apps"] .portfolio-image-large {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.portfolio-item-large[data-category="business"] .portfolio-image-large {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.portfolio-item-large[data-category="ecommerce"] .portfolio-image-large {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Portfolio page responsive styles */
@media (max-width: 768px) {
    .portfolio-main-title {
        font-size: 2rem;
    }

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

    .portfolio-item-large {
        min-height: 150px;
        border-radius: 10px;
    }

    .portfolio-item-large::before {
        border-radius: 10px;
    }

    .portfolio-simple-title {
        font-size: 1rem;
    }

    .portfolio-image-large {
        min-height: 150px;
        display: flex;
        align-items: center;
    }

    .portfolio-content-large {
        padding: 1.5rem;
        gap: 0.8rem;
    }

    .portfolio-title-large {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .portfolio-description-large {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .portfolio-tech-large {
        margin-bottom: 1rem;
    }

    .portfolio-tech-large span {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }

    .portfolio-features {
        display: none;
    }

    .portfolio-actions {
        margin-top: 0;
    }

    .portfolio-actions .btn-primary {
        padding: 8px 16px;
        font-size: 0.75rem;
        border-radius: 25px;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .cta-content h2 {
        font-size: 1.7rem;
    }
    
    /* Hide all arrows in mobile version */
    .fas.fa-chevron-left,
    .fas.fa-chevron-right,
    .fas.fa-chevron-down,
    .fas.fa-chevron-up,
    .fas.fa-arrow-left,
    .fas.fa-arrow-right,
    .fas.fa-arrow-up,
    .fas.fa-arrow-down,
    .expand-icon,
    .testimonial-nav-btn {
        display: none !important;
    }
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 52000;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(99, 102, 241, 0.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    transform-origin: center;
}

/* Hamburger Animation - Active State */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--primary-color);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* Hide desktop nav-menu completely in mobile */
    .nav-menu {
        display: none !important;
    }
    
    /* Position hamburger in top right when menu is active */
    body.menu-active .hamburger {
        position: fixed;
        top: 2rem;
        right: 2rem;
        z-index: 53000;
    }
    
    .header {
        transition: height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    body.menu-active .header {
        height: 100vh;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }
    
    body.menu-active .nav {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 6rem 2rem 2rem 2rem;
    }
    
    body.menu-active .nav-menu {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        opacity: 1;
        visibility: visible;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 51000;
        padding: 2rem;
        list-style: none;
        margin-top: 4rem;
    }
    
    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        animation: slideInUp 0.6s ease forwards;
    }
    
    .nav-menu.active li {
        animation-delay: calc(var(--i) * 0.1s);
    }
    
    .nav-menu li:nth-child(1) { --i: 1; }
    .nav-menu li:nth-child(2) { --i: 2; }
    .nav-menu li:nth-child(3) { --i: 3; }
    .nav-menu li:nth-child(4) { --i: 4; }
    .nav-menu li:nth-child(5) { --i: 5; }
    .nav-menu li:nth-child(6) { --i: 6; }
    .nav-menu li:nth-child(7) { --i: 7; }
    .nav-menu li:nth-child(8) { --i: 8; }
    .nav-menu li:nth-child(9) { --i: 9; }
    .nav-menu li:nth-child(10) { --i: 10; }
    .nav-menu li:nth-child(11) { --i: 11; }
    
    .nav-link {
        font-size: 1.2rem;
        font-weight: 500;
        color: var(--dark-color);
        text-align: center;
        padding: 0.8rem 0;
        transition: color 0.3s ease;
        position: relative;
        text-decoration: none;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: width 0.4s ease;
    }
    
    .nav-link:hover::after,
    .nav-link:active::after {
        width: 100%;
    }
    
    .nav-link:hover {
        color: var(--primary-color);
    }
    
    .dark-mode-toggle-container {
        display: none;
    }
    
    .dark-mode-toggle {
        display: none;
    }
}

/* Slide in animation for menu items */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide content when mobile menu is active */
body.menu-active {
    overflow: hidden;
}

/* Only hide main content sections, not header */
body.menu-active main {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}