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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Container for responsive layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.navbar.scrolled {
    background: rgba(25, 25, 25, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-logo span {
    color: #f9004d;
}

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

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #f9004d;
}

.nav-link.nav-cta {
    background: #f9004d;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link.nav-cta:hover {
    background: transparent;
    border: 2px solid #f9004d;
    color: #f9004d;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/mainbg.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-title span {
    color: #f9004d;
}

.hero-role {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: #fbbf24;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: #f9004d;
    color: #fff;
}

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

.btn-secondary {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #191919;
}

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

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-text h3 {
    font-size: 1.3rem;
    color: #f9004d;
    margin-bottom: 25px;
    font-weight: 500;
}

.about-text p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.skill-tag {
    background: #f9004d;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #101010;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: 60px;
    font-weight: 700;
}

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

.service-card {
    background: #191919;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #f9004d;
    box-shadow: 0 20px 40px rgba(249, 0, 77, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: #f9004d;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #ccc;
    line-height: 1.6;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #191919;
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact > .container > p {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: #101010;
    padding: 40px 20px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    border-color: #f9004d;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(249, 0, 77, 0.2);
}

.contact-card i {
    font-size: 2.5rem;
    color: #f9004d;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card p {
    color: #ccc;
    font-size: 1rem;
}

/* Footer */
footer {
    background: #101010;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
}

footer p {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: #f9004d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(249, 0, 77, 0.3);
}

.copyright {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design - Mobile First */

/* Small devices (portrait tablets and large phones, 600px and up) */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(25, 25, 25, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

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

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

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

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

    /* Hero responsive */
    .hero-content {
        text-align: center;
        padding: 0 15px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 200px;
        text-align: center;
    }

    /* About responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    /* Services responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Contact responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Extra small devices (phones, 480px and down) */
@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-logo h2 {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-content {
        padding: 0 10px;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .about {
        padding: 60px 0;
    }

    .about-content {
        gap: 30px;
    }

    .services {
        padding: 60px 0;
    }

    .service-card {
        padding: 30px 20px;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-card {
        padding: 30px 15px;
    }

    .container {
        padding: 0 10px;
    }
}

/* Medium devices (landscape tablets, 768px to 991px) */
@media screen and (min-width: 769px) and (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr 1.2fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Large devices (laptops/desktops, 992px to 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .about-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media screen and (min-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr 1.8fr;
        gap: 60px;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-role {
        font-size: 1.3rem;
    }
}

/* High DPI displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .hero::before {
        background-image: url('images/mainbg.jpg');
        background-size: cover;
    }
}

/* Print styles */
@media print {
    .navbar,
    .nav-toggle,
    .hero-buttons,
    .contact {
        display: none;
    }
    
    .hero {
        background: #fff;
        color: #000;
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero-title,
    .hero-role {
        color: #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(15, 15, 15, 0.95);
    }
}

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

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.contact-card:focus {
    outline: 2px solid #f9004d;
    outline-offset: 2px;
}

/* Touch devices optimization */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-link:hover,
    .service-card:hover,
    .contact-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Very large screens */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
    
    .hero-container {
        max-width: 1400px;
    }
}