/* Reset and Base Styles */
:root {
    --primary-color: 51, 51, 51;      /* #333 */
    --secondary-color: 255, 255, 255; /* #fff */
    --spot-color: 251, 109, 48;       /* #fb6d30 */
}

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



/* Custom cursor */
a, .close-drop-down {
    cursor: none; 
 }

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: rgba(var(--spot-color), 0.9); /* 90% opacity */
    border-color: rgba(var(--spot-color)); 
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    z-index: 9999;
  }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: rgb(var(--secondary-color));
    color: rgb(var(--primary-color));
    /* cursor: none; */
}

/* Container */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-canvas {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    
}

.page-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 1.5rem;
}

/* Main Content Area */
main {
    flex: 1;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow-x: hidden;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    width: 100%;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

/* Grid columns */
.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 0;
}

.header h1 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: -10px;
}

.header h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: rgb(var(--primary-color));
    padding: 0.2rem 0.5rem;
    position: relative;
    transition: color 0.3s ease;
    border-radius: 50px;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgb(var(--primary-color));
    transition: height 0.3s ease;
    z-index: -1;
    /* border-radius: 50px; */
}

nav a:hover {
    color: rgb(var(--spot-color));
}

nav a:hover::before {
    height: 100%;
}

/* cta button */
.cta-btn {
    background-color: rgb(var(--spot-color));
    color: rgb(var(--secondary-color));
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: opacity 0.15s ease-out, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    position: fixed;
    background: rgb(var(--spot-color), 0.90);
    border: 1px solid rgb(var(--spot-color));
    /* pointer-events: none; */
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(var(--spot-color), 0.3);
    cursor: pointer;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap:nowrap;
    gap: 0.5rem;
    white-space: nowrap;
}
.cta-btn img {
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-btn.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    /* pointer-events: auto; */
}

.cta-btn.active img {
    width: 20px;
    height: 20px;
    opacity: 1;
}

/* fancy button */ 
.fancy-btn {
    position: relative;
    overflow: hidden;
    z-index: 0;
  }
  
  .circle-fill {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: rgb(var(--spot-color));
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%) scale(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-transform: translate(-50%, -50%) scale(0);
    /* transition: transform 0.5s cubic-bezier(.4,0,.2,1); */
  }
  

/* Portfolio Section */
.section-title {
    font-size: 1.5rem;
    color: #666;
    margin: 2rem 0;
    text-align: right;
}

.portfolio-grid {
    margin-top: auto;
}

.portfolio-item-wrapper {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    min-height: 80dvh;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Portfolio item hover states */
.portfolio-item {
    margin-bottom: 0;
    width: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.portfolio-gif {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    transition: opacity 0.6s ease;
}

.portfolio-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1);
}

.portfolio-video.active {
    opacity: 1;
}

.portfolio-item:hover .custom-cursor {
    opacity: 0;
}

/* Footer */
.footer {
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #eee;
}


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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: rgb(var(--secondary-color));

    border: 1px solid rgb(var(--secondary-color));
    border-radius: 30px;
    padding: 0.1rem 0.7rem;
    transition: color 0.3s ease;
    transition: border 0.3s ease;
    
}

.social-links a:hover {
    text-decoration: none;
    /* color: rgb(var(--spot-color)); */
    border-color: rgb(var(--spot-color));
}


/* Utility Classes */
.text-right {
    text-align: right;
} 

/* drop-down Menu */
.drop-down-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100dvh;
    /* background-color: rgba(var(--spot-color), 1); */
    background-color: rgb(var(--primary-color));
    color: rgb(var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    filter: contrast(0) blur(8px);
    transition: none;
    z-index: 1000;
}

/* .drop-down-menu.active {
     Remove top: 0; so GSAP can animate it 
}  */

.drop-down-content {
    padding: 4rem;
    height: 100%;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.close-drop-down {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    display: flex;
    align-items: center;
    border: 1px solid rgb(var(--secondary-color));
    color: rgb(var(--secondary-color));
    padding: 0.4rem;
    transition: background-color 0.3s ease;
    transition: border 0.3s ease;
    transform-origin: center;
    border-radius: 30px;
}

.close-drop-down img {
    width: 12px;
    height: 12px;
}


.close-drop-down:hover {
    /* background-color: rgb(var(--spot-color)); */
    /* opacity: 60;     */
    border: 1px solid rgb(var(--spot-color));
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 4rem;
}

.about-content p {
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 800;
}

/* Optional: Add this to prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
} 

/* Hamburger Button Styles */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1100;
    width: 45px;
    height: 45px;
    background: rgb(var(--spot-color), 0.90);
    border: 1px solid rgb(var(--spot-color));
    border-radius: 50%;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.15); */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(8px);
}

/* Hamburger Animation */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    padding: 0.4rem;
}
.line {
    width: 100%;
    height: 2px;
    background: rgb(var(--secondary-color));
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.77,0,0.175,1);
    position: relative;
}
.mobile-nav.open .line1 {
    transform: translateY(10px) rotate(45deg);
}
.mobile-nav.open .line2 {
    opacity: 0;
    transform: scaleX(0.5);
}
.mobile-nav.open .line3 {
    transform: translateY(-10px) rotate(-45deg);
} 

/* Responsive Design */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    [class*="col-"] {
        width: 100%;
    }

    .about-content p {
        font-size: 1.8rem;
        line-height: 1.5;
    }

    .header {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
        justify-content: flex-start;
    }

    .mobile-hidden {
        display: none;
    }

    .mobile-nav {
        display: inline-flex;
    }

    .portfolio-item-wrapper{
        min-height: 50dvh;
    }

    .drop-down-menu {
        width: 100%;
    }

    .drop-down-content {
        padding: 2rem;
    }

}
/* if we don't have hover (touch) */
@media (hover: none) {

    .custom-cursor {
        display: none;
        visibility: hidden;
    }

    .cta-btn {
        opacity: 1 !important;
        transform: translate(-50%, -50%) scale(1) !important;
        position: absolute;
        top: 50% !important;
        left: 50% !important;
        z-index: 10;
        display: flex;
    }
    
    .cta-btn.activated {
        opacity: 0 !important;
        pointer-events: none;
    }

    .cta-btn img {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
}