/* ===========================
   nTask - ABC.XYZ Style
   Alphabet Investor Relations Inspired
   =========================== */

:root {
    /* Alphabet Colors */
    --google-blue: #4285f4;
    --google-red: #ea4335;
    --google-yellow: #fbbc04;
    --google-green: #34a853;
    --alphabet-red: #e8453c;
    
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-link: #1a73e8;
    --bg-white: #fff;
    --bg-offwhite: #fafafa;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   Page Wrapper
   =========================== */
.page-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    position: relative;
}

/* ===========================
   Header
   =========================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.logo-n {
    color: var(--alphabet-red);
    font-weight: 500;
}

.logo-task {
    color: var(--text-primary);
    font-weight: 300;
}

.top-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.top-nav a:hover {
    color: var(--text-primary);
}

/* ===========================
   Main Content
   =========================== */
.main-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-left {
    max-width: 550px;
    padding-top: 20px;
}

/* ===========================
   Large Letter Block (like 'G')
   =========================== */
.letter-block {
    width: 72px;
    height: 72px;
    background: var(--google-blue);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 
        3px 0 0 rgba(0,0,0,0.05),
        0 3px 0 rgba(0,0,0,0.05),
        3px 3px 0 rgba(0,0,0,0.05),
        3px 3px 8px rgba(0,0,0,0.15);
    transform: rotateX(5deg) rotateY(-5deg);
}

.letter-block span {
    color: white;
    font-size: 48px;
    font-weight: 500;
    font-family: 'Product Sans', 'Roboto', sans-serif;
}

/* ===========================
   Title
   =========================== */
.main-title {
    font-size: 42px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.3;
    font-family: 'Product Sans', 'Roboto', sans-serif;
}

/* ===========================
   Description
   =========================== */
.description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-weight: 400;
}

.description p {
    margin-bottom: 16px;
}

.description a {
    color: var(--text-link);
    text-decoration: none;
}

.description a:hover {
    text-decoration: underline;
}

.read-more {
    margin-top: 8px;
}

.read-more a {
    color: var(--alphabet-red);
    font-weight: 400;
}

/* ===========================
   Signature
   =========================== */
.signature {
    margin-top: 40px;
}

.signature-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-style: italic;
}

.signature-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===========================
   3D Blocks Container
   =========================== */
.blocks-container {
    position: relative;
    width: 500px;
    height: 500px;
    flex-shrink: 0;
}

/* ===========================
   3D Block Styles
   =========================== */
.block {
    position: absolute;
    width: 70px;
    height: 70px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.block-face {
    position: absolute;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    border-radius: 4px;
    font-family: 'Product Sans', 'Roboto', sans-serif;
}

.block-face.front {
    background: var(--block-color);
    transform: translateZ(35px);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.block-face.top {
    background: var(--block-color);
    filter: brightness(1.2);
    transform: rotateX(90deg) translateZ(35px);
}

.block-face.right {
    background: var(--block-color);
    filter: brightness(0.8);
    transform: rotateY(90deg) translateZ(35px);
}

/* Block Positions - Scattered like abc.xyz */
.block-1 {
    top: 10%;
    right: 60%;
    transform: rotateX(-15deg) rotateY(15deg) rotateZ(-8deg);
}

.block-2 {
    top: 5%;
    right: 20%;
    transform: rotateX(10deg) rotateY(-10deg) rotateZ(5deg);
}

.block-3 {
    top: 25%;
    right: 45%;
    transform: rotateX(12deg) rotateY(8deg) rotateZ(-12deg);
}

.block-4 {
    top: 35%;
    right: 10%;
    transform: rotateX(-8deg) rotateY(12deg) rotateZ(10deg);
}

.block-5 {
    top: 55%;
    right: 35%;
    transform: rotateX(15deg) rotateY(-12deg) rotateZ(-5deg);
}

.block-6 {
    top: 50%;
    right: 70%;
    transform: rotateX(-10deg) rotateY(15deg) rotateZ(8deg);
}

.block-7 {
    top: 70%;
    right: 50%;
    transform: rotateX(8deg) rotateY(-8deg) rotateZ(-10deg);
}

.block-8 {
    top: 75%;
    right: 15%;
    transform: rotateX(-12deg) rotateY(10deg) rotateZ(12deg);
}

.block:hover {
    transform: scale(1.05) rotateX(0deg) rotateY(0deg) rotateZ(0deg) !important;
}

/* ===========================
   Footer
   =========================== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-size: 18px;
}

.footer-logo .logo-n {
    color: var(--alphabet-red);
    font-weight: 500;
}

.footer-logo .logo-task {
    color: var(--text-primary);
    font-weight: 300;
}

.footer-cnpj {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1200px) {
    .blocks-container {
        width: 400px;
        height: 400px;
    }
    
    .block {
        width: 60px;
        height: 60px;
    }
    
    .block-face {
        width: 60px;
        height: 60px;
        font-size: 40px;
    }
    
    .block-face.front {
        transform: translateZ(30px);
    }
    
    .block-face.top {
        transform: rotateX(90deg) translateZ(30px);
    }
    
    .block-face.right {
        transform: rotateY(90deg) translateZ(30px);
    }
}

@media (max-width: 968px) {
    html, body {
        overflow-y: auto;
    }
    
    .page-wrapper {
        height: auto;
        min-height: 100vh;
        padding: 20px 30px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .content-left {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .blocks-container {
        position: relative;
        width: 100%;
        height: 300px;
        margin: 0 auto;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .page-wrapper {
        padding: 16px 20px;
    }
    
    .header {
        margin-bottom: 40px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .letter-block {
        width: 60px;
        height: 60px;
    }
    
    .letter-block span {
        font-size: 40px;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .block {
        width: 50px;
        height: 50px;
    }
    
    .block-face {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
    
    /* Hide some blocks on mobile */
    .block-6, .block-7, .block-8 {
        display: none;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-left {
    animation: fadeIn 0.8s ease-out;
}

.blocks-container {
    animation: fadeIn 1s ease-out 0.2s both;
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .blocks-container {
        display: none;
    }
    
    .footer-nav {
        display: none;
    }
}
