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

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --dark-color: #1e293b;
    --light-color: #f1f5f9;
    --text-color: #334155;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility - Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

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

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 25px auto;
    border-radius: 2px;
    animation: slideIn 0.6s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 60px;
    opacity: 0.85;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
}

.logo h2 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    font-size: 1.05rem;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.hamburger:hover {
    transform: scale(1.1);
}

.bar {
    width: 28px;
    height: 3px;
    background: var(--dark-color);
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Home Section */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.home-section::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.home-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.animate-text {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.subtitle {
    font-size: 1.8rem;
    margin-bottom: 15px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

@keyframes scroll {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    background: var(--gradient);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 22px;
    color: var(--dark-color);
    font-weight: 700;
}

.about-text p {
    margin-bottom: 32px;
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--text-color);
}

.skills h4 {
    margin-bottom: 18px;
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.tag {
    background: var(--light-color);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px 20px;
    background: var(--light-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.stat-item:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Projects Section */
.projects-section {
    background: var(--light-color);
}

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

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #f1f5f9;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: var(--light-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    color: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    border: 2px solid var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.view-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left 0.4s ease;
    z-index: -1;
}

.view-project:hover::before {
    left: 0;
}

.view-project:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.project-info {
    padding: 28px;
}

.project-info h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 700;
    transition: var(--transition);
}

.project-card:hover .project-info h3 {
    color: var(--primary-color);
}

.project-info p {
    margin-bottom: 18px;
    line-height: 1.7;
    color: var(--text-color);
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    background: var(--light-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition-fast);
}

.project-tags span:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Work Section */
.work-section {
    background: var(--white);
}

.work-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.process-step {
    text-align: center;
    padding: 35px 25px;
    background: var(--light-color);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    border-radius: 12px 12px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.process-step:hover::before {
    transform: scaleX(1);
}

.process-step:hover {
    transform: translateY(-8px);
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.step-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 25px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.2rem;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.process-step:hover .step-icon {
    transform: rotateY(360deg);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.process-step h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 700;
}

.process-step p {
    line-height: 1.7;
    color: var(--text-color);
}

.work-showcase h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

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

.service-card {
    padding: 35px 30px;
    background: var(--light-color);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.service-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
    display: inline-block;
}

.service-card:hover i {
    transform: scale(1.15) rotateY(360deg);
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 700;
}

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

/* Team Section */
.team-section {
    background: var(--light-color);
}

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

.team-member {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 30px;
    border: 1px solid #f1f5f9;
}

.team-member:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.member-image {
    position: relative;
    overflow: hidden;
    background: var(--light-color);
}

.member-image img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover .member-image img {
    transform: scale(1.12);
    filter: brightness(0.95);
}

.social-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.95), rgba(124, 58, 237, 0.95));
    padding: 18px;
    display: flex;
    justify-content: center;
    gap: 18px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover .social-links {
    transform: translateY(0);
}

.social-links a {
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.15);
    background: var(--white);
    color: var(--primary-color);
}

.team-member h3 {
    margin: 25px 0 8px;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.bio {
    padding: 0 25px;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    background: var(--gradient);
    padding: 45px 40px;
    border-radius: 12px;
    color: var(--white);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 35px;
    font-weight: 700;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    transition: var(--transition);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.info-item i {
    font-size: 1.6rem;
    margin-top: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-item:hover i {
    background: var(--white);
    color: var(--primary-color);
}

.info-item h4 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 600;
}

.info-item p {
    opacity: 0.95;
    line-height: 1.7;
}

.social-media {
    margin-top: 35px;
}

.social-media h4 {
    margin-bottom: 18px;
    font-size: 1.15rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px) rotate(360deg);
}

.contact-form-wrapper {
    position: relative;
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark-color);
}

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

.form-group input:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
}

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

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

/* Input validation states */
.form-group input:valid,
.form-group textarea:valid {
    border-color: #10b981;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
    display: block;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Loading State */
body.loading {
    overflow: hidden;
}

body.loaded {
    animation: fadeIn 0.5s ease;
}

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

/* Tooltip styling for accessibility */
[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--dark-color);
    color: var(--white);
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 6px;
    pointer-events: none;
    z-index: 1000;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 2000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Smooth scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.4rem;
    }
    
    .about-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
        gap: 0;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
    }

    .nav-menu li {
        padding: 12px 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 12px 20px;
        font-size: 1.1rem;
    }

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

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

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

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

    section {
        padding: 70px 0;
    }

    .container {
        padding: 0 20px;
    }

    .animate-text {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .description {
        font-size: 1.05rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .work-process {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

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

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

    .logo h2 {
        font-size: 1.6rem;
    }

    .animate-text {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .project-info h3 {
        font-size: 1.4rem;
    }

    .team-member h3 {
        font-size: 1.3rem;
    }

    .contact-info {
        padding: 30px 25px;
    }

    .info-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 5px;
    }
}

/* Print styles for better printing */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator,
    .footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .project-card,
    .team-member,
    .service-card {
        border: 2px solid var(--dark-color);
    }
}
