:root {
    --bg-dark: #0a0f1c;
    --bg-card: #111827;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-primary: #00d4ff;
    --accent-secondary: #3b82f6;
    --gradient-main: linear-gradient(135deg, #00d4ff 0%, #3b82f6 100%);
    --border-color: #1f2937;
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Account for fixed header */
}

/* Scroll Reveal Animation - Disabled hidden state for stability */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

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

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

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

/* Buttons */
.btn-sm {
    padding: 8px 16px;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    color: var(--accent-primary);
    font-weight: 600;
}

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

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 6px;
    margin-left: 15px;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.full-width {
    width: 100%;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero-bg.png') no-repeat center center/cover;
    opacity: 0.3;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.role-tag {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.main-name {
    font-size: 4.5rem !important;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-tagline {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.hero-summary {
    font-weight: 700;
    font-size: 1.5rem;
    /* Smaller as requested */
    margin-top: 2rem;
    /* Add gap above */
    margin-bottom: 4rem;
    /* Add gap below */
    color: var(--text-primary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.sub-headline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Sections General */
section {
    padding: 100px 0;
}

/* ... existing code ... */

/* Tech Logos */
.tech-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.tech-logo {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-logo:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

/* Profile Image */
.profile-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--accent-primary);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
    transition: transform 0.4s ease-out;
}

.profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 70px rgba(0, 212, 255, 0.7);
}

/* ... existing code ... */

/* Certifications */
.cert-img {
    height: 140px;
    width: auto;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.cert-img:hover {
    transform: scale(1.15);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

.about-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.about-card p {
    color: var(--text-secondary);
}

/* Services Section */
#services {
    position: relative;
    background: url('assets/data-bg.png') no-repeat center center/cover;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.95);
    z-index: 1;
}

#services .container {
    position: relative;
    z-index: 2;
}

/* Services Grid - Force 2x2 on Desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns for Desktop */
    gap: 30px;
    margin-top: 50px;
}

/* ... (keep existing service-card styles) ... */

/* Responsive Adjustments */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Stack on smaller screens/tablets */
    }
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {

    /* General Mobile Adjustments */
    section {
        padding: 60px 0;
        /* Reduce padding on mobile */
    }

    .container {
        padding: 0 20px;
    }

    /* Hero Section */
    #hero {
        padding-top: 90px;
        /* Reduced from 120px */
        /* More space for fixed header */
        height: auto;
        /* Allow height to grow if content implies it */
        min-height: 100vh;
        padding-bottom: 60px;
    }

    #hero h1 {
        font-size: 2rem;
        /* Much smaller headline */
        margin-bottom: 5px;
        /* Reduced from 15 */
    }

    .main-name {
        font-size: 2.5rem !important;
        /* Smaller main name to fit width */
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .role-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
        margin-bottom: 1rem;
        /* Reduced from 2rem */
        white-space: normal;
        /* Allow text wrapping if needed */
        line-height: 1.4;
    }

    .hero-tagline {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .sub-headline {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-summary {
        font-size: 1.5rem;
        /* Slightly smaller to save height */
        margin-top: 1.5rem;
        /* Reduced from 3rem */
        margin-bottom: 2rem;
        /* Reduced to show buttons */
        padding: 0 15px;
        line-height: 1.4;
        font-weight: 700;
    }

    .tech-logos {
        gap: 15px;
        margin-top: 20px;
        /* Reduced to pull icons up */
    }

    .tech-logo {
        height: 50px;
        /* Smaller logos */
        filter: grayscale(0%) opacity(1) !important;
        /* Full color on mobile */
    }

    /* Navigation */
    .hamburger {
        display: block;
        /* Show on mobile */
        z-index: 1001;
        /* Above mobile menu */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 100%;
        /* Full width drawer */
        height: 100vh;
        background: rgba(10, 15, 28, 0.98);
        backdrop-filter: blur(10px);
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    /* Header - Ensure Logo is visible */
    header .container {
        justify-content: space-between;
        /* Space logo and hamburger */
    }

    /* Contact Section */
    .contact-wrapper {
        padding: 30px;
        flex-direction: column;
    }

    .contact-icons-grid {
        gap: 20px;
    }

    /* Profile */
    .profile-img {
        width: 180px;
        height: 180px;
        margin-bottom: 20px;
    }

    /* Certifications */
    .cert-flex {
        flex-direction: column;
        gap: 20px;
    }

    .cert-img {
        height: 100px;
    }

    /* Trust Grid */
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .trust-item {
        padding: 15px;
    }

    .trust-logo {
        height: 50px;
        filter: grayscale(0%) brightness(1) !important;
        /* Full color on mobile */
    }
}

@media (max-width: 480px) {

    /* Small Phone Adjustments (iPhone SE etc) */
    .main-name {
        font-size: 2.2rem !important;
        /* Even smaller for narrow screens */
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .cta-group {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin: 0 0 10px 0;
        /* Stack buttons with margin */
    }

    .trust-grid {
        grid-template-columns: 1fr;
        /* 1 column on very small screens */
    }
}

.service-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

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

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::after {
    opacity: 1;
}

/* Pulse Animation for Profile */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 80px rgba(0, 212, 255, 0.8), 0 0 20px rgba(59, 130, 246, 0.5);
    }

    100% {
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
    }
}

.profile-img {
    animation: pulse-glow 3s infinite;
}

/* Floating animation for logos */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.tech-logo {
    animation: float 4s ease-in-out infinite;
}

/* Tech Stack Glitch Effect on Hover */
.tech-stack {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    transition: letter-spacing 0.3s;
}

.service-card:hover .tech-stack {
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--accent-primary);
}

.service-card p {
    color: var(--text-secondary);
}

/* Certifications */
.cert-flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.cert-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.cert-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.cert-text h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.cert-text p {
    font-weight: 700;
    color: var(--text-primary);
}

/* Experience / Trust */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.trust-item {
    padding: 30px;
    background: var(--bg-card);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.trust-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.trust-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.4s ease;
}

.trust-item:hover .trust-logo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.trust-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.contact-content {
    flex: 1;
    min-width: 300px;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-methods {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.contact-link {
    font-weight: 600;
    color: var(--accent-primary);
    border-bottom: 2px solid transparent;
}

.contact-link:hover {
    border-bottom-color: var(--accent-primary);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

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

.socials {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        padding: 0 1rem;
    }
}

/* Tech Logos */
.tech-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tech-logo {
    height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.tech-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Profile Image */
.profile-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-primary);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
    transition: transform 0.3s;
}

.profile-img:hover {
    transform: scale(1.05);
}

.about-content-text {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-content-text p {
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-primary);
    padding-left: 20px;
    display: inline-block;
    margin-bottom: 30px;
}

.about-content-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Contact Icons */
.contact-icons-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.contact-icon-item:hover {
    transform: translateY(-5px);
    color: var(--accent-primary);
}

.contact-icon-item img,
.contact-icon-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.cert-img {
    height: 120px;
    width: auto;
    margin-bottom: 15px;
}

/* Technical Arsenal Section */
.tech-arsenal-section {
    padding: 2rem 0;
    margin-bottom: 4rem;
}

.code-window {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto Mono', monospace;
    overflow: hidden;
    margin: 0 auto;
    max-width: 800px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.code-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
}

.window-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.window-header .title {
    margin-left: 10px;
    color: #8b949e;
    font-size: 0.9rem;
}

.window-body {
    padding: 20px;
    color: #c9d1d9;
    font-size: 1.1rem;
    line-height: 1.6;
}

.keyword {
    color: #ff7b72;
}

.variable {
    color: #79c0ff;
}

.key {
    color: #d2a8ff;
}

.string {
    color: #a5d6ff;
}

.comment {
    color: #8b949e;
    margin-left: 10px;
    font-style: italic;
}

.code-block {
    padding-left: 20px;
}

.tech-item {
    margin: 5px 0;
}

/* Mobile Tech Grid (Hidden on Desktop) */
.mobile-tech-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tech-card i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.tech-card span {
    font-weight: 600;
}

/* End of styles */

/* Custom Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Safari Support */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}