/* ===========================
   MODERN PROFESSIONAL THEME
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4ff;
    --secondary: #7c3aed;
    --dark: #0a0e27;
    --darker: #050811;
    --light: #e2e8f0;
    --accent: #f59e0b;
    --text-color: #94a3b8;
    --card-bg: #0f1629;
    --border-color: #1e293b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--darker);
}

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

/* ===========================
   NAVIGATION BAR
   =========================== */

.navbar {
    background: var(--dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.1);
}

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

.logo {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
}

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: white;
    padding: 150px 20px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* ===========================
   FEATURED WORK SECTION
   =========================== */

.featured {
    padding: 80px 20px;
    background: var(--dark);
}

.featured h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light);
}

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

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.featured-item:hover {
    transform: translateY(-10px);
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 17, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: var(--primary);
    font-size: 1.5rem;
    text-align: center;
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light);
}

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

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.service-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

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

/* ===========================
   STATS SECTION
   =========================== */

.stats {
    background: var(--dark);
    color: white;
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
}

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

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* ===========================
   INSTAGRAM SECTION
   =========================== */

.instagram-section {
    padding: 60px 20px;
    text-align: center;
    background: var(--dark);
}

.instagram-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.instagram-section p {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.instagram-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===========================
   PORTFOLIO PAGE STYLES
   =========================== */

.portfolio-header {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.portfolio-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.portfolio-header p {
    font-size: 1.1rem;
    color: var(--primary);
}

.portfolio-filters {
    padding: 40px 20px;
    text-align: center;
    background: var(--dark);
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--primary);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

.portfolio-gallery {
    padding: 60px 20px;
    background: var(--dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 280px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 17, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--primary);
    font-size: 1.3rem;
    text-align: center;
}

/* ===========================
   ABOUT PAGE STYLES
   =========================== */

.about-header {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.about-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.about-header p {
    font-size: 1.1rem;
    color: var(--primary);
}

.about-content {
    padding: 80px 20px;
    background: var(--dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border: 1px solid var(--border-color);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.about-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.8rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

.skills-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.skills-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light);
}

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

.skill-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.skill-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.skill-item p {
    color: var(--text-color);
}

.testimonials {
    padding: 80px 20px;
    background: var(--dark);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light);
}

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

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-card p {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-card h4 {
    color: var(--light);
    font-weight: 600;
}

/* ===========================
   CONTACT PAGE STYLES
   =========================== */

.contact-header {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--primary);
}

.contact-content {
    padding: 80px 20px;
    background: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--light);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--light);
}

.info-text p {
    color: var(--text-color);
}

.info-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

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

.social-links-large a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links-large a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--light);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.form-note {
    font-size: 0.9rem;
    color: #666;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-top: 1rem;
}

.form-message.success {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.form-message.error {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.faq-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light);
}

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

.faq-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--primary);
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

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

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--dark);
    color: var(--text-color);
    padding: 60px 20px 20px;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: #666;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

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

    .nav-links {
        position: absolute;
        top: 60px;
        right: 20px;
        background: var(--dark);
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        display: none;
        border: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

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

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

    .featured h2,
    .services h2,
    .skills-section h2,
    .testimonials h2,
    .faq-section h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        overflow-x: auto;
    }

    .filter-btn {
        white-space: nowrap;
        margin: 0 5px;
        padding: 8px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Show gallery overlay on mobile */
    .gallery-overlay {
        opacity: 1;
    }

    .gallery-item:hover .gallery-overlay {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .featured-grid,
    .services-grid,
    .skills-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

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

    .featured-item,
    .gallery-item {
        height: 250px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */

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

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

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

.featured-item,
.service-card,
.skill-item,
.testimonial-card,
.faq-item {
    animation: fadeIn 0.6s ease-out;
}
