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

.hero .container {
    width: min(92%, 1080px);
    max-width: none;
    margin: 0 auto;
    padding-inline: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    letter-spacing: -0.03em;
}

.typing-start,
.typing-end {
    white-space: nowrap;
    display: inline-block;
}

.typing-caret {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: currentColor;
    margin-left: 6px;
    animation: blink 1s steps(2) infinite;
    vertical-align: -0.1em;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes lightSweep {
    0% { transform: translateX(-60%) skewX(-12deg); opacity: 0; }
    35% { opacity: 0.35; }
    60% { opacity: 0.18; }
    100% { transform: translateX(160%) skewX(-12deg); opacity: 0; }
}

@keyframes dashPulse {
    0% { transform: scaleX(0); opacity: 0; }
    40% { transform: scaleX(1); opacity: 0.5; }
    60% { transform: scaleX(1); opacity: 0.8; }
    100% { transform: scaleX(0); opacity: 0; }
}

@keyframes buttonShimmer {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(220%); }
}

.hero .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s backwards;
    letter-spacing: -0.01em;
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s backwards;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.btn-glass:hover {
    background: var(--glass-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-outline-glass {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.5s backwards;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
}

.btn-outline-glass:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Touch Feedback for Mobile */
@media (hover: none) {
    .btn-glass:active,
    .btn-outline-glass:active,
    .card:active,
    .project-card:active {
        transform: scale(0.98);
    }
}

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

/* Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 30%;
    animation-delay: 4s;
}

/* Gradient Orb Animation */
.gradient-orb {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.gradient-orb:nth-child(2) {
    width: 250px;
    height: 250px;
    animation-delay: 2s;
    animation-duration: 10s;
}

.gradient-orb-top-right {
    top: 10%;
    right: 10%;
}

.gradient-orb-bottom-left {
    bottom: 20%;
    left: 10%;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -30px); }
}

/* Section Styling */
section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.03em;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(1rem, 2vw, 1.1rem);
    text-align: center;
    margin-bottom: 5rem;
    font-weight: 300;
}

/* Services Section */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    border-color: var(--primary-color);
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Portfolio Section with Expandable Cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.resume-heading-lg,
.resume-heading-md {
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    font-weight: 700;
    line-height: 1.1;
    display: inline-block;
}

.resume-heading-lg {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.resume-heading-md {
    font-size: clamp(1.1rem, 2.6vw, 1.3rem);
    letter-spacing: 0.3rem;
}

/* Resume Section Styles */
.experience-card {
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.experience-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h4 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.company {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 0;
}

.period {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.experience-list li {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.experience-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.3rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.skill-category {
    padding: 1.5rem;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.skill-category h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.education-card {
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.education-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.education-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.institution {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.education-card .period {
    display: inline-block;
    margin-bottom: 0.8rem;
}

.description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.certification-card {
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.certification-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.certification-card i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.certification-card h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.certification-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.award-card {
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.award-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.award-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    min-width: 60px;
    font-family: 'Space Grotesk', sans-serif;
}

.award-card h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.award-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Portfolio Section with Expandable Cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.project-card:hover .project-image {
    filter: grayscale(0%);
}

.project-info {
    padding: 2rem;
}

.project-category {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.3rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-grid .project-card {
    --card-delay: 0s;
}

.portfolio-grid .project-card:nth-child(2) {
    --card-delay: 0.08s;
}

.portfolio-grid .project-card:nth-child(3) {
    --card-delay: 0.16s;
}

.portfolio-grid .project-card:nth-child(4) {
    --card-delay: 0.24s;
}

.portfolio-grid .project-card:nth-child(5) {
    --card-delay: 0.32s;
}

.portfolio-grid .project-card:nth-child(6) {
    --card-delay: 0.4s;
}






.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    z-index: 2;
}

.gallery-nav[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.gallery-nav:hover:not([disabled]) {
    border-color: white;
    background: rgba(0, 0, 0, 0.55);
}

.gallery-nav.prev {
    left: 0.5rem;
}

.gallery-nav.next {
    right: 0.5rem;
}

/* Process Section */
.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(255, 255, 255, 0.2) 10%,
        rgba(255, 255, 255, 0.2) 90%,
        transparent);
}

.process-step {
    display: flex;
    margin-bottom: 5rem;
    align-items: center;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-content {
    width: 45%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    --process-offset: 0px;
    transform: translateY(var(--process-offset));
}

.process-step:nth-child(odd) .process-content {
    --process-offset: 20px;
}

.process-step:nth-child(even) .process-content {
    --process-offset: 80px;
}

.process-step:nth-child(even) .process-number {
    text-align: right;
}

.process-content:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(calc(var(--process-offset) - 5px));
}

.process-number {
    width: 10%;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
}

.process-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-content p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.process-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 1.25rem;
}

body[data-theme="light"] .process-icon {
    background: rgba(0, 0, 0, 0.04);
    color: #000000;
}

.process-content:hover .process-icon {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Contact Section */
.contact-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card.contact-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.contact-info-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.contact-info-card a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    border-color: var(--primary-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
}

.quote-cta {
    margin-top: 3rem;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.quote-cta h4 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.quote-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-grid .project-card.fade-in {
    transform: translateY(70px) scale(0.96);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
    transition-delay: var(--card-delay, 0s);
    will-change: transform, opacity;
}

.portfolio-grid .project-card.fade-in.visible {
    transform: translateY(0) scale(1);
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
