/* =============================================
   DigiTech Globals - Portfolio Stylesheet
   Design inspired by itanzeel.com
   Colors: Royal Blue (#1e40af) & Gold (#f59e0b)
   ============================================= */

:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --dark: #0a0a0a;
    --dark-lighter: #1a1a1a;
    --dark-card: #111111;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-dark: #333333;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--dark);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Bar */
.top-bar {
    background: var(--dark-lighter);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.contact-info {
    display: flex;
    gap: 25px;
}

.contact-info a {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: var(--accent);
}

.contact-info i {
    color: var(--accent);
}

.top-bar .social-links {
    display: flex;
    gap: 15px;
}

.top-bar .social-links a {
    color: var(--text-muted);
    font-size: 16px;
}

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

/* Navigation */
.navbar {
    background: var(--dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
}

.logo i {
    font-size: 28px;
    color: var(--accent);
}

.logo strong {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 50%, var(--primary-dark) 100%);
    opacity: 0.8;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(30, 64, 175, 0.3) 0%, transparent 50%);
}

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

.hero-text {
    z-index: 1;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.1;
}

.tagline {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 35px;
    font-weight: 400;
}

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

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

.image-frame {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 5px solid var(--accent);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    position: relative;
    display: inline-block;
}

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

.section-title.light h2 {
    color: var(--white);
}

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

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

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
}

.skill-percent {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-out;
}

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

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

.service-card {
    background: var(--dark-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-icon i {
    font-size: 32px;
    color: var(--dark);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Social Section */
.social-section {
    padding: 80px 0;
    background: var(--dark-lighter);
    text-align: center;
}

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

.social-icon {
    width: 60px;
    height: 60px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--gradient);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
}

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

.cta .btn-primary:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 16px;
}

.cta-contact-item i {
    font-size: 20px;
    color: var(--accent-light);
}

.cta-contact-item a,
.cta-contact-item span {
    color: var(--white);
    font-weight: 500;
}

.cta-contact-item a:hover {
    color: var(--accent-light);
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer .credit {
    margin-top: 10px;
}

.footer .credit span {
    color: var(--accent);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: translateY(-30px);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.modal > p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

.hire-form .form-group {
    margin-bottom: 20px;
}

.hire-form input,
.hire-form select,
.hire-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.hire-form input::placeholder,
.hire-form textarea::placeholder {
    color: #999;
}

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

.hire-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeLeft 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

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

    .hero-image {
        order: -1;
    }

    .image-frame {
        width: 250px;
        height: 250px;
    }

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

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

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-lighter);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

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

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .tagline {
        font-size: 18px;
    }

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

    .image-frame {
        width: 220px;
        height: 220px;
    }

    .section-title h2 {
        font-size: 28px;
    }

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

    .cta h2 {
        font-size: 28px;
    }

    .cta-contact {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .cta-contact-item {
        font-size: 14px;
    }

    .modal {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .image-frame {
        width: 180px;
        height: 180px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
