:root {
    --primary-color: #5a5451;
    --secondary-color: #94a1b2;
    --accent-color: #b3bbc7;
    --text-light: #5a5451;
    --bg-light: #c6d2e4;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background: var(--bg-light);
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}
.navbar {
    background: rgba(198, 210, 228, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Work in Progress Disclaimer */
.work-in-progress-disclaimer {
    position: fixed;
    top: 76px; /* Position below navbar */
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    z-index: 999;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}

.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    display: inline-block;
    padding: 0 140px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Adjust hero section to account for disclaimer */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    z-index: 1;
    background: var(--bg-light);
    margin-top: 40px; /* Add margin to account for disclaimer */
}

.hero-flex-container {
    display: flex;
    width: 100%;
    height: 100%;
    
}

.hero-content-wrapper {
    flex: 1;
    height: 100vh;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
}

.hero-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(90, 84, 81, 0.05);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--primary-color);
}

.hero-image-wrapper {
    flex: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    padding-left: 40px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    padding-left: 40px;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    line-height: 1.6;
    padding-left: 40px;
}

.btn-primary-custom {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
    text-align: center;
    margin-left: 40px;
}

.btn-primary-custom:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(90, 84, 81, 0.3);
}

.btn-form-submit {
    background: var(--secondary-color);
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
    color: white;
}

.btn-form-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(90, 84, 81, 0.3);
}

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

.section-padding {
    padding: 80px 0;
}

/* Section Backgrounds */
.section {
    background: var(--bg-light);
}

.section.bg-light {
    background: var(--bg-light);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    animation: fadeInScrollIndicator 1s ease 1.2s forwards;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    background: rgba(198, 210, 228, 0.8);
    backdrop-filter: blur(5px);
    will-change: transform;
}

.scroll-arrow i {
    color: var(--primary-color);
    font-size: 14px;
    animation: pulse 2s infinite;
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

@keyframes fadeInScrollIndicator {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

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

/* Hide scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

#skills {
    background: var(--bg-light);
}

#portfolio {
    background: var(--bg-light);
}

#contact {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
}

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

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

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
    }
    
    .hero-flex-container {
        flex-direction: column;
    }
    
    .hero-content-wrapper {
        height: auto;
        min-height: 60vh;
        padding: 40px 20px;
    }
    
    .hero-image-wrapper {
        height: 40vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Sticky Transition Section */
.sticky-transition-section {
    position: relative;
    height: 300vh;
    background: var(--bg-light);
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.phrase-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phrase {
    position: absolute;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease;
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
}

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

.phrase.fade-out {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease;
}

/* Scroll-based phrase transitions */
.phrase-1 {
    opacity: 1;
    transform: translateY(0);
}

.phrase-2 {
    opacity: 0;
    transform: translateY(50px);
}

.phrase-3 {
    opacity: 0;
    transform: translateY(50px);
}

.phrase-4 {
    opacity: 0;
    transform: translateY(50px);
}

@media (max-width: 768px) {
    .phrase {
        font-size: 2.5rem;
    }
}

/* About Section Styles */
.smooth-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.content {
    width: 70%;
    margin: 200px auto;
}

.content .container {
    margin: 80px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-flex-container {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.about-flex-container.reverse {
    flex-direction: row-reverse;
}

.about-text-wrapper {
    flex: 1;
    text-align: left;
}

.about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--bg-light);
    border: 2px dashed var(--text-light);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.about-image-placeholder:hover {
    border-color: var(--secondary-color);
    background: var(--accent-color);
}

.about-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-image-placeholder p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.content h1.text {
    text-transform: uppercase;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1.4px;
    padding: 10px 0;
}

.content p.text {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.text {
    color: transparent;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: 0.8s;
}

.text.reveal {
    color: var(--primary-color);
    animation: revealTextAnimation 0.64s ease forwards;
}

.text:before {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.text.reveal:before {
    background: var(--secondary-color);
    animation: blockRevealAnimation 0.8s ease forwards;
}

.content .img {
    position: relative;
    display: block;
    overflow: hidden;
}

.content .img img {
    max-width: 100%;
    opacity: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content .img:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.content .img.reveal:before {
    background: var(--accent-color);
    animation: blockRevealAnimation 0.8s ease forwards;
}

.content .img.reveal img {
    animation: revealImgAnimation 0.8s ease forwards;
}

@keyframes blockRevealAnimation {
    0% {
        left: -100%;
    }
    40% {
        left: 0;
    }
    60% {
        left: 0;
    }
    100% {
        left: 100%;
    }
}

@keyframes revealTextAnimation {
    0% {
        color: transparent;
    }
    40% {
        color: transparent;
    }
    60% {
        color: var(--primary-color);
    }
}

@keyframes revealImgAnimation {
    0% {
        opacity: 0;
    }
    60% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 990px) {
    .content {
        width: 100%;
    }
    .content h1.text {
        font-size: 20px;
    }
    .content p.text {
        font-size: 16px;
    }
    
    .about-flex-container {
        flex-direction: column !important;
        gap: 30px;
    }
    
    .about-text-wrapper {
        text-align: center;
    }
    
    .about-image-placeholder {
        width: 250px;
        height: 250px;
    }
}

/* Portfolio Section Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Skills Section Styles */
.skills-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.skills-grid-3x2 .skill-item {
    background: var(--bg-light);
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    gap: 15px;
}

.skills-grid-3x2 .skill-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.skills-grid-3x2 .skill-item span {
    font-size: 1rem;
    font-weight: 600;
}

.skills-grid-3x2 .skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: var(--secondary-color);
    color: white;
}

.skills-grid-3x2 .skill-item:hover i {
    color: white;
}

@media (max-width: 768px) {
    .skills-grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
    }
    
    .skills-grid-3x2 .skill-item {
        padding: 30px 15px;
        font-size: 1rem;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .skills-grid-3x2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skills-grid-3x2 .skill-item {
        padding: 25px 15px;
        font-size: 0.9rem;
        min-height: 80px;
    }
}

/* Optimize animations for better performance */
.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    text-decoration: none;
    color: inherit;
}

.portfolio-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.portfolio-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.placeholder-screenshot {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: white;
    text-align: center;
}

.placeholder-screenshot i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.placeholder-screenshot p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.portfolio-content {
    padding: 30px;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.portfolio-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .portfolio-title {
        font-size: 1.3rem;
    }
    
    .portfolio-description {
        font-size: 0.9rem;
    }
}

/* Contact Section Styles */
.contact-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 20px;
}

.contact-item span {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(148, 161, 178, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input.success,
.form-group textarea.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 1.2rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group label.required::after {
    content: " *";
    color: #dc3545;
}

/* Loading button styles */
.btn-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.btn-form-submit.loading .btn-text {
    display: none;
}

.btn-form-submit.loading .btn-loading {
    display: inline-block;
}

/* Form field focus */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(148, 161, 178, 0.1);
    transition: all 0.3s ease;
}

/* Accessibility */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .contact-container {
        max-width: 100%;
        padding: 0 20px;
        margin-top: 40px;
    }
    
    .contact-info {
        padding: 20px;
        text-align: center;
    }
    
    .contact-info h3 {
        font-size: 1.8rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 0 15px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 1.2rem;
}

.toast-content span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

.toast-success {
    border-left: 4px solid var(--accent-color);
}

.toast-success .toast-content i {
    color: var(--accent-color);
}

.toast-error {
    border-left: 4px solid var(--primary-color);
}

.toast-error .toast-content i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Hide reCAPTCHA badge by default */
.grecaptcha-badge,
.grecaptcha-badge > div,
iframe[src*="recaptcha"],
iframe[src*="google.com/recaptcha"] {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: all 0.3s ease;
    position: fixed !important;
    bottom: 14px !important;
    right: 14px !important;
    z-index: 2147483647 !important;
}

.grecaptcha-badge.show,
.grecaptcha-badge.show > div,
iframe[src*="recaptcha"].show,
iframe[src*="google.com/recaptcha"].show {
    visibility: visible !important;
    opacity: 1 !important;
}